Skip to content

Commit

Permalink
Merge pull request #36 from Bali10050/feature-qt6
Browse files Browse the repository at this point in the history
UI tweaks by DeltaCopy
  • Loading branch information
Bali10050 authored Oct 28, 2024
2 parents 9db08da + 401c487 commit c281ad6
Show file tree
Hide file tree
Showing 2 changed files with 491 additions and 349 deletions.
16 changes: 14 additions & 2 deletions kstyle/config/lightlystyleconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ namespace Lightly
connect( _scrollBarSubLineButtons, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) );
connect( _windowDragMode, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) );
connect( _menuOpacity, &QAbstractSlider::valueChanged, this, &StyleConfig::updateChanged );
connect(_menuOpacity, SIGNAL(valueChanged(int)), _menuOpacitySpinBox, SLOT(setValue(int)));
connect(_menuOpacitySpinBox, SIGNAL(valueChanged(int)), _menuOpacity, SLOT(setValue(int)));
connect( _buttonSize, &QAbstractSlider::valueChanged, this, &StyleConfig::updateChanged );
connect( _sidebarOpacity, &QAbstractSlider::valueChanged, this, &StyleConfig::updateChanged );
connect(_sidebarOpacity, SIGNAL(valueChanged(int)), _sidebarOpacitySpinBox, SLOT(setValue(int)));
connect(_sidebarOpacitySpinBox, SIGNAL(valueChanged(int)), _sidebarOpacity, SLOT(setValue(int)));
connect( _kTextEditDrawFrame, &QAbstractButton::toggled, this, &StyleConfig::updateChanged );
connect( _widgetDrawShadow, &QAbstractButton::toggled, this, &StyleConfig::updateChanged );
connect( _oldTabbar, &QAbstractButton::toggled, this, &StyleConfig::updateChanged );
Expand Down Expand Up @@ -146,9 +150,15 @@ namespace Lightly
else if( _animationsEnabled->isChecked() != StyleConfigData::animationsEnabled() ) modified = true;
else if( _animationsDuration->value() != StyleConfigData::animationsDuration() ) modified = true;
else if( _windowDragMode->currentIndex() != StyleConfigData::windowDragMode() ) modified = true;
else if( _menuOpacity->value() != StyleConfigData::menuOpacity() ) modified = true;
else if( _menuOpacity->value() != StyleConfigData::menuOpacity() ) {
modified = true;
_menuOpacitySpinBox->setValue( _menuOpacity->value() );
}
else if( _buttonSize->value() != StyleConfigData::buttonSize() ) modified = true;
else if( _sidebarOpacity->value() != StyleConfigData::dolphinSidebarOpacity() ) modified = true;
else if( _sidebarOpacity->value() != StyleConfigData::dolphinSidebarOpacity() ) {
modified = true;
_sidebarOpacitySpinBox->setValue( _sidebarOpacity->value() );
}
else if( _kTextEditDrawFrame->isChecked() != StyleConfigData::kTextEditDrawFrame() ) modified = true;
else if( _widgetDrawShadow->isChecked() != StyleConfigData::widgetDrawShadow() ) modified = true;
else if( _oldTabbar->isChecked() != StyleConfigData::oldTabbar() ) modified = true;
Expand Down Expand Up @@ -181,7 +191,9 @@ namespace Lightly
_animationsDuration->setValue( StyleConfigData::animationsDuration() );
_windowDragMode->setCurrentIndex( StyleConfigData::windowDragMode() );
_menuOpacity->setValue( StyleConfigData::menuOpacity() );
_menuOpacitySpinBox->setValue( StyleConfigData::menuOpacity() );
_sidebarOpacity->setValue( StyleConfigData::dolphinSidebarOpacity() );
_sidebarOpacitySpinBox->setValue( StyleConfigData::dolphinSidebarOpacity() );
_buttonSize->setValue( StyleConfigData::buttonSize() );
_kTextEditDrawFrame->setChecked( StyleConfigData::kTextEditDrawFrame() );
_widgetDrawShadow->setChecked( StyleConfigData::widgetDrawShadow() );
Expand Down
Loading

0 comments on commit c281ad6

Please sign in to comment.