Skip to content

Commit 848b08e

Browse files
improv: make the QHeaderView section color darker
1 parent 6d647cb commit 848b08e

File tree

3 files changed

+55
-51
lines changed

3 files changed

+55
-51
lines changed

pupgui2/resources/themes/steamdeck/__init__.py

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,49 @@
66
from PySide6 import QtCore
77

88
qt_resource_data = b"\
9-
\x00\x00\x02~\
9+
\x00\x00\x02\x84\
1010
\x00\
11-
\x00\x0a\xf2x\x9c\xd5V\xc9n\xdb0\x10\xbd\xfb+\x18\
12-
\xf7\xd2\x1a\x90eK\x8e\x17\xfa\xe6&@\x0b\x14M\x83\
13-
\x1a\xed\x99\x16\xc7\x12\x11I\x14H*vZ\xf4\xdf;\
14-
\xd6b\xc5Z\x8c\xa2u\x80F\x17\x01\xc3\xe1\x9b\xf7f\
15-
\x93\xec\x01Y\x07B\x93\xad\x08\x81\xe0\x9b\xa5FZ>\
16-
\xc4\xa0\x98\x01N\xb6JF\xa4\xaf\xcdS\x08:\x000\
17-
\xc3\xe4\xa9O\x06v\xcf\x1e\x90\x9b;\xf2\xf9nMn\
18-
o>\xae\xaf\xae\xae\x0e\xc6\xde\xfdw\xc1}0\xe4g\
19-
\x8f\xe0\xe3\xc9P*J\xde@\xf6,3\xdb\x86y\x0f\
20-
\xbe\x92i\xcc\xad\xf2x<\x1bs\xe7:?\xde\xca\xd8\
21-
X;\x10~`(qG\xa3e\xefW\xef\xfeK\xaa\
22-
\x83Uj\x8c\x8c\x0b\xe0\x16\x10g\xeepwZ\xc4\x90\
23-
\x8a\x83\xb2\x14\xe3\x22\xd5\x948\xc9>\xb7'\x8cs\x11\
24-
\xfb\x94\xcc\x0f\x16\x04\xfe$\xb49a|)\xe0\xf72\
25-
\xda\xc8\x95\xdc_\x18v-e\xf8B\x89\x88\xe1\x96\x8b\
26-
K\xa7\xe1\x030t\xfc&`W\x00\x1f=\xc6\x0d\x0f\
27-
J5xF\x5cL\xda\xa4QcJ\x85\x81\xa8\xce\xa4\
28-
\xf4\xab\x9a\x8c\x06\xf2\x11T7\x8d\xc9t\xc2\xaf\xe7\xf5\
29-
K\x89\x02\xadq`:\xaf\xb9\x0bw;Y\xd4\xafq\
30-
\xa1\xd9&<w\x0f\x87c\xe4L\xbb\xb2\x85d\x95\xf8\
31-
\x81S\xc3\xc2\x02\x22b\xca\x17\xb1\x15\xc2\x16GhT\
32-
\xe6\xa5\xb0\xaa|\xb2\x9c\xee\xf4S\xd4n\x84W\x873\
33-
2i\xa2m$j\x88*\xb8\xf5AJ\x8e\xf6,\xd5\
34-
'\x84\xc6\xb5\x09\xa1\x94+\x99X\x5c\xee\xca\xc2\xebt\
35-
\xe3\xa1\x1e%C\x0b\xa5\xe1MZ\x14{Y?N\xa4\
36-
\x16\x19e\x82\xecH&\xad\xd6\x04\xcepTk\x8c2\
37-
\x03\x93\xd2\xde\xd5H;\xc1M\x80|\xa7\xa5AD\xcc\
38-
\x07JR\x15\xbe\xedS\x1b\xab-S\xe5\x81\xb6M\x00\
39-
\x11\xbe\xb4\x01\x16q\xf0\x1el\x81\xfc\xac\xa3\xaa\xa1~\
40-
\xf4\xfb\xef2\xcd_=d\x1d\xae\x98j\x9d\x86sd\
41-
\x9ama\x14\x8bu\xc2\x14\xc4\xe6\x14\xbb\xbd~\x18c\
42-
\x91\xec\xab\x02\x96\xea\x16E9\xaa\xeb\x1d\xfd\x94\x15\xbf\
43-
\xf0?X\x83bG\xb7 P\x94e\x85\xb8Q:\xa9\
44-
\xfci\xeeg\x8dh\xb3\xee\x8c\x9c\xac\x87\x96&\xca\xa3\
45-
\x9fi\xa2\xbc\x9b\xebb\xd0\xf55\x8a\xc1\x89\xe8,K\
46-
g\x89\xffS-\xc5dw\xd4\xe5\xb5\xa99\xec\xc1\xba\
47-
\x98\x80\xc5\x1c\x7f\xbf\xfe\xe9\xcb\x17\xe1\x8e-\x14\xb9\xa3\
48-
\xe7\xc6\xe0\xf8;\xd5\x1c\xd54\xb1\x98R\xb2\xfc>\x97\
49-
\x19q\x1b\x19q\xffn\x0d\x96\xf8m[\x10W?\xee\
50-
\xc7\x97\x8d_E\xa8\x18\xfc\x06\x87\x97s]\
11+
\x00\x0a\xf2x\x9c\xd5VMo\x9b@\x10\xbd\xfbW\xac\
12+
\xddKk\x09\x1b\x83\xe3\x8f\xf5\xcdM\xa4V\xaa\x9aF\
13+
\xb5\xda\xf3\xc2\x8ea\x15`\xd1\xee\x12;\xad\xf2\xdf;\
14+
\xc6`b0V\xd4:R\xc3\x05iv\xf6\xcd{\xf3\
15+
\x05\xc3>Y\x85B\x93\xb5\x88\x80\xe0\x9beFZ\x01\
16+
$\xa0\x98\x01N\xd6J\xc6\xa4\xa7\xcdc\x04:\x040\
17+
\x83\xf4\xb1G\xfa\xc3\xce\xb0O\xaeo\xc9\xd7\xdb\x15\xb9\
18+
\xb9\xfe\xbc\xeav\xbb;c\xe7\xee\xa7\xe0\x01\x18\xf2\xbb\
19+
C\xf0\xf1e$\x15%\xef \x7f\x16\xb9\xcdc\xfe}\
20+
\xa0d\x96p\xab<\x1eMG\xdc\xb9\xda\x1f\xafeb\
21+
\xac\x0d\x88 4\x94\xb8\xb6\xbd\xe8<u\xee\xbee:\
22+
\x5cf\xc6\xc8\xa4\x00>\x01\xe2\xcc\x1c\xeeN\x8a\x18R\
23+
qP\x96b\x5cd\x9a\x12'\xdd\xee\xed)\xe3\x5c$\
24+
\x01%\xb3\x9d\x05\x81\xbf\x08m\x8e\x18_\x0a\xf8\xa3\x8c\
25+
=\xb9\x94\xdb\x0b\xc3\xae\xa4\x8c^)\x11\x09\xdcpq\
26+
\xe94|\x02\x86\x8e?\x04l\x0a\xe0\x83\xc7\xa8\xe1A\
27+
\xa9\x06\xdf\x88\xb3\xd2lg\xecx/\xe40n\xd4\x98\
28+
Ra \xae3)\xfd\xaa&\xa3\xa1|\x00\xd5Nc\
29+
<\x19\xf3\xabY\xfdR\xaa@k\x1c\x98\xd6k\xee\xdc\
30+
]\x8f\xe7\xf5k\x5ch\xe6E\xe7\xee\xe1p\xd8\xce\xa4\
31+
-[HV\x89_85,* b\xa6\x02\x91X\
32+
\x11\xacq\x84\xec2/\x85U\xed'\xcbiO?E\
33+
\xedF\xf8u8#\xd3&\x9a'QC\x5c\xc1\xadv\
34+
R\xf6h\xcfR}DhT\x9b\x10J\xb9\x92\xa9\xc5\
35+
\xe5\xa6,\xbc\xce<\x1f\xf5(\x19Y(\x0do\xd2\xa2\
36+
\xd8\x8b\xfaq*\xb5\xc8)\x13dGri\xb5&p\
37+
\x06v\xad1\xca\x0c\x8cK{[#m\x047!\xf2\
38+
\x9d\x94\x06\x11\xb3\x00(\xc9T\xf4\xbeG\x87Xm\x99\
39+
)\x1f\xf4\xd0\x84\x10\xe3K\x1b`1\x07\xff~(\x90\
40+
\x9fuP5\xd0\x0fA\xefC\xae\xf9\xbb\x8f\xac\xa3%\
41+
S'\xa7\xe1\x1c\x99f[\x18\xc5\x12\x9d2\x05\x899\
42+
\xc6>]?\x8c1O\xb7U\x01Ku\xf3\xa2\x1c\xd5\
43+
\xf5\x96~\xca\x8b_\xf8\xef\xaca\xb1\xa3O P\x94\
44+
eE\xb8QZ\xa9\xbc4\xf7\xd3F\xb4i{F\x8e\
45+
V\xd4\x89&\xdaG?\xd3D\xfbn\xae\x8bA\xd7\xb7\
46+
(\x06'\xa2\xb5,\xad%\xfeO\xb5\x14\x93\xddR\x97\
47+
\xb7\xa6f\xb7\x07\xebbB\x96p\xfc\xfd\xfa\xa7\xafo\
48+
\x8c;\xb6P\xe4\xda\xcf\x8d\xe1\xe1w\xaa9\xaaYj\
49+
1\xa5d\xf9}.3\xe262\xe2\xfe\xdd\x1a,\xf1\
50+
OmA\x5c\xfd\xb8\x1f_7~\x15\xa1b\xf0\x07\x1b\
51+
\xbcsP\
5152
\x00\x00\x00\xb6\
5253
\x00\
5354
\x00\x00\xf0x\x9c-\x8e\xd1\x0e\x820\x0cE\xdf\xf9\x8a\
@@ -136,13 +137,13 @@
136137
\x00\x00\x00\x00\x00\x00\x00\x00\
137138
\x00\x00\x00*\x00\x02\x00\x00\x00\x04\x00\x00\x00\x04\
138139
\x00\x00\x00\x00\x00\x00\x00\x00\
139-
\x00\x00\x00\x90\x00\x01\x00\x00\x00\x01\x00\x00\x03<\
140+
\x00\x00\x00\x90\x00\x01\x00\x00\x00\x01\x00\x00\x03B\
140141
\x00\x00\x01\x96+}A\xa5\
141142
\x00\x00\x00B\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\
142-
\x00\x00\x01\x965\xf4`\xd2\
143-
\x00\x00\x00\xb8\x00\x01\x00\x00\x00\x01\x00\x00\x04\x09\
143+
\x00\x00\x01\x966\x03Q\xe9\
144+
\x00\x00\x00\xb8\x00\x01\x00\x00\x00\x01\x00\x00\x04\x0f\
144145
\x00\x00\x01\x96+}A\xa5\
145-
\x00\x00\x00d\x00\x01\x00\x00\x00\x01\x00\x00\x02\x82\
146+
\x00\x00\x00d\x00\x01\x00\x00\x00\x01\x00\x00\x02\x88\
146147
\x00\x00\x01\x96+}A\xa5\
147148
"
148149

pupgui2/resources/themes/steamdeck/stylesheet.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
style.QPushButton.disabled.setValues(backgroundColor=background_color_disabled.name())
5858

5959
style.QHeaderView.setValues(padding=f"{padding_min}px")
60-
style.QHeaderView.section.setValues(padding=f"{padding_item}px")
60+
style.QHeaderView.section.setValues(
61+
padding=f"{padding_item}px",
62+
backgroundColor=background_color_item.darker(125).name(),
63+
)
6164
style.QHeaderView.section.horizontal.setValues(marginLeft="0px", marginRight="2px")
6265
style.QHeaderView.section.vertical.setValues(marginTop="0px", marginBottom="2px")
6366
style.QTableView.item.setValues(marginLeft="1px")
@@ -127,10 +130,10 @@
127130

128131

129132
if __name__ == "__main__":
130-
with open(os.path.join(os.path.dirname(__file__), "stylesheet.qss"), "w", encoding="utf-8") as qss:
131-
qss.write(f'/* This file is auto-generated from "{os.path.basename(__file__)}" */\n')
132-
qss.write(f'/* DO NOT EDIT!!! */\n\n')
133-
qss.write(style.toString())
133+
with open(os.path.join(os.path.dirname(__file__), "stylesheet.qss"), "w", encoding="utf-8") as stylesheet:
134+
stylesheet.write(f'/* This file is auto-generated from "{os.path.basename(__file__)}" */\n')
135+
stylesheet.write(f'/* DO NOT EDIT!!! */\n\n')
136+
stylesheet.write(style.toString())
134137

135138
qt_tool_wrapper(
136139
"rcc",

pupgui2/resources/themes/steamdeck/stylesheet.qss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ QHeaderView {
3535
padding: 1px;
3636
}
3737
QHeaderView::section {
38-
background-color: #282d36;
38+
background-color: #20242b;
3939
border-radius: 2px;
4040
padding: 4px;
4141
}

0 commit comments

Comments
 (0)