View Issue Details

IDProjectCategoryView StatusLast Update
0017924ScribusUser Interfacepublic2026-09-06 01:39
Reporterqirat Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSFedora WorkstationOS Version44
Product Version1.7.4.svn 
Fixed in Version1.7.4.svn 
Summary0017924: [PATCH] Dark theme: PageSelector/zoom buttons flash light gradient on press
Descriptionscribus.css hardcodes #dadbde/#f6f7fa for the ':pressed' gradient on PageSelector nav buttons and zoom toolbar buttons, ignoring theme.
Steps To ReproduceDark theme → press-and-hold a PageSelector arrow or zoom button → light gradient flash.
Additional InformationFix: Replace hex stops with palette(light)/palette(midlight).
Tags#please_test
Attached Files
dark-theme-pressed-button-gradient-fix-v1.01.patch (2,310 bytes)   
Index: scribus/scribus.css
===================================================================
--- scribus/scribus.css	(revision 27771)
+++ scribus/scribus.css	(working copy)
@@ -14,21 +14,21 @@
 /* page back, forward etc buttons */
 PageSelector QPushButton { height: 20px; width: 20px; border: 0px; }
 PageSelector QPushButton:hover { border: 1px solid gray ; }
-PageSelector QPushButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+PageSelector QPushButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 
 /* zoom buttons */
 QPushButton#zoomDefaultToolbarButton { height: 20px; width: 20px; border: 0px; }
 QPushButton#zoomDefaultToolbarButton:hover { border: 1px solid gray ; }
-QPushButton#zoomDefaultToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+QPushButton#zoomDefaultToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 QPushButton#zoomInToolbarButton { height: 20px; width: 20px; border: 0px; }
 QPushButton#zoomInToolbarButton:hover { border: 1px solid gray ; }
-QPushButton#zoomInToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+QPushButton#zoomInToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 QPushButton#zoomOutToolbarButton { height: 20px; width: 20px; border: 0px; }
 QPushButton#zoomOutToolbarButton:hover { border: 1px solid gray ; }
-QPushButton#zoomOutToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+QPushButton#zoomOutToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 QSpinBox#zoomSpinBox { height: 20px; width: 3em; padding-right: 15px; }
 
PatchYes

Activities

qirat

2026-08-29 03:27

reporter   ~0054364

Here is a new improved version: replaces hard-coded light gradients with palette-based colours; adapts automatically.

The initial number in the filename suggests the order it is to go while testing my four dark theme fixes (tickets in order: 0017923, 0017924, 0017925, and 0017926).
2_dark-theme-pressed-button-gradient-fix-v1.03.patch (2,310 bytes)   
Index: scribus/scribus.css
===================================================================
--- scribus/scribus.css	(revision 27791)
+++ scribus/scribus.css	(working copy)
@@ -14,21 +14,21 @@
 /* page back, forward etc buttons */
 PageSelector QPushButton { height: 20px; width: 20px; border: 0px; }
 PageSelector QPushButton:hover { border: 1px solid gray ; }
-PageSelector QPushButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+PageSelector QPushButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 
 /* zoom buttons */
 QPushButton#zoomDefaultToolbarButton { height: 20px; width: 20px; border: 0px; }
 QPushButton#zoomDefaultToolbarButton:hover { border: 1px solid gray ; }
-QPushButton#zoomDefaultToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+QPushButton#zoomDefaultToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 QPushButton#zoomInToolbarButton { height: 20px; width: 20px; border: 0px; }
 QPushButton#zoomInToolbarButton:hover { border: 1px solid gray ; }
-QPushButton#zoomInToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+QPushButton#zoomInToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 QPushButton#zoomOutToolbarButton { height: 20px; width: 20px; border: 0px; }
 QPushButton#zoomOutToolbarButton:hover { border: 1px solid gray ; }
-QPushButton#zoomOutToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }
+QPushButton#zoomOutToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 palette(light), stop: 1 palette(midlight)); }
 
 QSpinBox#zoomSpinBox { height: 20px; width: 3em; padding-right: 15px; }
 

jghali

2026-09-04 23:23

administrator   ~0054418

Patch has been applied to trunk, thanks!

qirat

2026-09-06 01:39

reporter   ~0054425

Thank you for your time, and everything else, @jghali

Issue History

Date Modified Username Field Change
2026-08-16 03:23 qirat New Issue
2026-08-16 03:23 qirat File Added: dark-theme-pressed-button-gradient-fix-v1.01.patch
2026-08-29 03:27 qirat Note Added: 0054364
2026-08-29 03:27 qirat File Added: 2_dark-theme-pressed-button-gradient-fix-v1.03.patch
2026-08-29 05:26 qirat Tag Attached: #please_test
2026-09-04 23:23 jghali Assigned To => jghali
2026-09-04 23:23 jghali Status new => resolved
2026-09-04 23:23 jghali Resolution open => fixed
2026-09-04 23:23 jghali Fixed in Version => 1.7.4.svn
2026-09-04 23:23 jghali Note Added: 0054418
2026-09-06 01:39 qirat Note Added: 0054425