From 7890a947029c26076d307a7c78adb3aecee6e973 Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:51:36 +0200 Subject: [PATCH] Add pressed padding to QPushButton styles Update ytsage/gui/ytsage_stylesheet.py to add explicit padding for various QPushButton:pressed rules (and QPushButton:checked:pressed) across multiple style blocks. These changes unify the visual spacing and touch feedback when buttons are pressed, ensuring consistent pressed-state layout and appearance. --- ytsage/gui/ytsage_stylesheet.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ytsage/gui/ytsage_stylesheet.py b/ytsage/gui/ytsage_stylesheet.py index 465a8ad..c1f7841 100644 --- a/ytsage/gui/ytsage_stylesheet.py +++ b/ytsage/gui/ytsage_stylesheet.py @@ -32,6 +32,7 @@ class StyleSheet: } QPushButton:pressed { background-color: #800000; + padding: 10px 13px 6px 17px; } QPushButton:disabled { background-color: #3d3d3d; @@ -141,6 +142,7 @@ class StyleSheet: } QPushButton:pressed { background-color: #1a1d1e; + padding: 11px 18px 7px 22px; } """ @@ -159,6 +161,7 @@ class StyleSheet: } QPushButton:pressed { background-color: #800000; + padding: 11px 18px 7px 22px; } QPushButton:disabled { background-color: #3d3d3d; @@ -181,6 +184,10 @@ class StyleSheet: background-color: #2a2d36; border-color: #a50000; } + QPushButton:pressed { + background-color: #1d1e22; + padding: 8px 10px 4px 12px; + } """ FORMAT_TOGGLE_BUTTON = """ @@ -201,6 +208,14 @@ class StyleSheet: QPushButton:checked:hover { background-color: #a50000; } + QPushButton:pressed { + background-color: #151619; + padding: 10px 13px 6px 17px; + } + QPushButton:checked:pressed { + background-color: #800000; + padding: 10px 13px 6px 17px; + } """ CHECKBOX = """ @@ -266,6 +281,7 @@ class StyleSheet: } QPushButton:pressed { background-color: #1a1d1e; + padding: 4px 0px 0px 4px; } """