Skip to content

Commit

Permalink
[qt6][themes] Fix drop down arrow position for instant popup tool but…
Browse files Browse the repository at this point in the history
…tons
nirvn authored and nyalldawson committed Aug 22, 2022
1 parent a1a864e commit c97ba23
Showing 4 changed files with 48 additions and 2 deletions.

Unable to render rich display

Invalid image source.

24 changes: 23 additions & 1 deletion resources/themes/Blend of Gray/style.qss
Original file line number Diff line number Diff line change
@@ -259,12 +259,34 @@ QToolButton:checked:disabled
{
border: 1px solid rgba(240,240,240,100);
}
QToolButton::menu-arrow
QToolButton::menu-arrow
{
image: url(@theme_path/icons/arrow-down.svg);
width: 0.8em;
height: 1.2em;
}
QToolButton::menu-arrow:disabled
{
image: url(@theme_path/icons/arrow-down-disabled.svg);
width: 0.8em;
height: 1.2em;
}
QToolButton::menu-indicator
{
top: 0.2em;
right: -0.2em;
image: url(@theme_path/icons/arrow-down.svg);
width: 0.8em;
height: 1.2em;
}
QToolButton::menu-indicator:disabled
{
top: 0.2em;
right: -0.2em;
image: url(@theme_path/icons/arrow-down-disabled.svg);
width: 0.8em;
height: 1.2em;
}
QToolBar QToolButton, QToolButton::menu-button
{
border-color: rgba(0,0,0,0);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion resources/themes/Night Mapping/style.qss
Original file line number Diff line number Diff line change
@@ -269,12 +269,34 @@ QToolButton:checked:disabled
{
border: 1px solid rgba(215,128,26,100);
}
QToolButton::menu-arrow
QToolButton::menu-arrow
{
image: url(@theme_path/icons/arrow-down.svg);
width: 0.8em;
height: 1.2em;
}
QToolButton::menu-arrow:disabled
{
image: url(@theme_path/icons/arrow-down-disabled.svg);
width: 0.8em;
height: 1.2em;
}
QToolButton::menu-indicator
{
top: 0.2em;
right: -0.2em;
image: url(@theme_path/icons/arrow-down.svg);
width: 0.8em;
height: 1.2em;
}
QToolButton::menu-indicator:disabled
{
top: 0.2em;
right: -0.2em;
image: url(@theme_path/icons/arrow-down-disabled.svg);
width: 0.8em;
height: 1.2em;
}
QToolBar QToolButton, QToolButton::menu-button
{
border-color: rgba(0,0,0,0);

0 comments on commit c97ba23

Please sign in to comment.