mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Add scrollbar type and mode options for the terminal.
Hack auto-scroll in terminal for Windows 11. Renamed ScrollViewType and made it global, properties are now `overlay` or `outside`. Added a couple of goodies for the terminal mode (retain side panel configuration and restore it if no terminals are left).
This commit is contained in:
@@ -1511,7 +1511,7 @@ void GitPlugin::buildSidePanelTab() {
|
||||
mBranchesTree->setHeadersVisible( false );
|
||||
mBranchesTree->setExpandersAsIcons( true );
|
||||
mBranchesTree->setIndentWidth( PixelDensity::dpToPx( 16 ) );
|
||||
mBranchesTree->setScrollViewType( UIScrollableWidget::Inclusive );
|
||||
mBranchesTree->setScrollViewType( ScrollViewType::Overlay );
|
||||
mBranchesTree->on( Event::OnModelEvent, [this]( const Event* event ) {
|
||||
const ModelEvent* modelEvent = static_cast<const ModelEvent*>( event );
|
||||
if ( !modelEvent->getModelIndex().hasParent() )
|
||||
@@ -1577,7 +1577,7 @@ void GitPlugin::buildSidePanelTab() {
|
||||
mStatusTree->setAutoColumnsWidth( true );
|
||||
mStatusTree->setHeadersVisible( false );
|
||||
mStatusTree->setExpandersAsIcons( true );
|
||||
mStatusTree->setScrollViewType( UIScrollableWidget::Inclusive );
|
||||
mStatusTree->setScrollViewType( ScrollViewType::Overlay );
|
||||
mStatusTree->setIndentWidth( PixelDensity::dpToPx( 4 ) );
|
||||
mStatusTree->on( Event::OnRowCreated, [this]( const Event* event ) {
|
||||
UITableRow* row = event->asRowCreatedEvent()->getRow();
|
||||
|
||||
Reference in New Issue
Block a user