Skip to content

Commit

Permalink
HiDPI: try to fix issues on Windows (part IV)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Aug 11, 2024
1 parent 130d8d2 commit 1ada101
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 11 additions & 4 deletions src/app/friction.qss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Colors and icon size from 'src/core/themesupport.cpp'.
%7 = icon size
%8 = getThemeColorOrange
%9 = getThemeRangeSelectedColor
%10 = half icon size

*/

Expand Down Expand Up @@ -61,14 +62,14 @@ QSpinBox::down-button {
QDoubleSpinBox::up-arrow,
QSpinBox::up-arrow {
image: url(:/icons/hicolor/scalable/actions/go-up.svg);
width: %7px;
height: %7px;
width: %10px;
height: %10px;
}
QDoubleSpinBox::down-arrow,
QSpinBox::down-arrow {
image: url(:/icons/hicolor/scalable/actions/go-down.svg);
width: %7px;
height: %7px;
width: %10px;
height: %10px;
}
QSpinBox#SpinBoxNoButtons::up-arrow,
QSpinBox#SpinBoxNoButtons::down-arrow,
Expand Down Expand Up @@ -227,6 +228,8 @@ QComboBox::drop-down:button{
QToolButton::menu-arrow,
QComboBox::down-arrow {
image: url(:/icons/hicolor/scalable/actions/go-down.svg);
width: %7px;
height: %7px;
}

QComboBox#blendModeCombo,
Expand Down Expand Up @@ -486,10 +489,14 @@ QCheckBox::indicator:hover:unchecked {

QCheckBox::indicator:checked {
image: url(:/icons/hicolor/scalable/actions/dialog-ok.svg);
width: %7px;
height: %7px;
}

QCheckBox::indicator:unchecked {
image: url(:/icons/hicolor/scalable/actions/dialog-cancel.svg);
width: %7px;
height: %7px;
}

QProgressBar {
Expand Down
3 changes: 2 additions & 1 deletion src/core/themesupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ const QString ThemeSupport::getThemeStyle(int iconSize)
getThemeAlternateColor().name(),
QString::number(getIconSize(iconSize).width()),
getThemeColorOrange().name(),
getThemeRangeSelectedColor().name());
getThemeRangeSelectedColor().name(),
QString::number(getIconSize(iconSize / 2).width()));
}

void ThemeSupport::setupTheme(const int iconSize)
Expand Down

0 comments on commit 1ada101

Please sign in to comment.