From ec8b7d8032cae93f202537ee9fde5a2315b84a78 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Fri, 8 Jun 2018 23:38:04 +0800 Subject: [PATCH] theme: scale QMenu --- src/resources/themes/v_detorte/v_detorte.qss | 18 ++++++++--------- .../themes/v_moonlight/v_moonlight.qss | 20 +++++++++---------- src/resources/themes/v_pure/v_pure.qss | 20 +++++++++---------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/resources/themes/v_detorte/v_detorte.qss b/src/resources/themes/v_detorte/v_detorte.qss index c426c53a..42859965 100644 --- a/src/resources/themes/v_detorte/v_detorte.qss +++ b/src/resources/themes/v_detorte/v_detorte.qss @@ -44,12 +44,12 @@ QMenu { } QMenu::icon { - margin: 5px; + margin: $5px; } QMenu::item { - padding: 5px 30px 5px 30px; - border: 1px solid transparent; + padding: $5px $30px $5px $30px; + border: $1px solid transparent; } QMenu::item:selected { @@ -62,19 +62,19 @@ QMenu::item:disabled { } QMenu::icon:checked { /* appearance of a 'checked' icon */ - border: 2px solid @menu_fg; + border: $2px solid @menu_fg; } QMenu::separator { - height: 2px; + height: $2px; background: @menu_separator_bg; - margin-left: 10px; - margin-right: 5px; + margin-left: $10px; + margin-right: $5px; } QMenu::indicator { - width: 20px; - height: 20px; + width: $20px; + height: $20px; } QMenu::indicator:non-exclusive:unchecked { diff --git a/src/resources/themes/v_moonlight/v_moonlight.qss b/src/resources/themes/v_moonlight/v_moonlight.qss index 112628a0..953334b9 100644 --- a/src/resources/themes/v_moonlight/v_moonlight.qss +++ b/src/resources/themes/v_moonlight/v_moonlight.qss @@ -40,16 +40,16 @@ QMenuBar::item:selected { QMenu { background: @menu_bg; color: @menu_fg; - border: 2px solid @menu_border_bg; + border: $2px solid @menu_border_bg; } QMenu::icon { - margin: 5px; + margin: $5px; } QMenu::item { - padding: 5px 30px 5px 30px; - border: 1px solid transparent; + padding: $5px $30px $5px $30px; + border: $1px solid transparent; } QMenu::item:selected { @@ -62,19 +62,19 @@ QMenu::item:disabled { } QMenu::icon:checked { /* appearance of a 'checked' icon */ - border: 2px solid @menu_fg; + border: $2px solid @menu_fg; } QMenu::separator { - height: 2px; + height: $2px; background: @menu_separator_bg; - margin-left: 10px; - margin-right: 5px; + margin-left: $10px; + margin-right: $5px; } QMenu::indicator { - width: 20px; - height: 20px; + width: $20px; + height: $20px; } QMenu::indicator:non-exclusive:unchecked { diff --git a/src/resources/themes/v_pure/v_pure.qss b/src/resources/themes/v_pure/v_pure.qss index 797bcb7d..d5274289 100644 --- a/src/resources/themes/v_pure/v_pure.qss +++ b/src/resources/themes/v_pure/v_pure.qss @@ -40,16 +40,16 @@ QMenuBar::item:selected { QMenu { background: @menu_bg; color: @menu_fg; - border: 2px solid @menu_border_bg; + border: $2px solid @menu_border_bg; } QMenu::icon { - margin: 5px; + margin: $5px; } QMenu::item { - padding: 5px 30px 5px 30px; - border: 1px solid transparent; + padding: $5px $30px $5px $30px; + border: $1px solid transparent; } QMenu::item:selected { @@ -62,19 +62,19 @@ QMenu::item:disabled { } QMenu::icon:checked { /* appearance of a 'checked' icon */ - border: 2px solid @menu_fg; + border: $2px solid @menu_fg; } QMenu::separator { - height: 2px; + height: $2px; background: @menu_separator_bg; - margin-left: 10px; - margin-right: 5px; + margin-left: $10px; + margin-right: $5px; } QMenu::indicator { - width: 20px; - height: 20px; + width: $20px; + height: $20px; } QMenu::indicator:non-exclusive:unchecked {