mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6c4a3d6a23
commit
7bc13463f2
@ -25,7 +25,7 @@ class Placeholder(QLabel):
|
|||||||
super().__init__(text, parent)
|
super().__init__(text, parent)
|
||||||
bg = self.backgrounds[Placeholder.bgcount]
|
bg = self.backgrounds[Placeholder.bgcount]
|
||||||
Placeholder.bgcount = (Placeholder.bgcount + 1) % len(self.backgrounds)
|
Placeholder.bgcount = (Placeholder.bgcount + 1) % len(self.backgrounds)
|
||||||
self.setStyleSheet(f'QLabel {{ background: {bg} }}')
|
self.setStyleSheet(f'QLabel {{ background: {bg};\nborder: 1px solid red; }}')
|
||||||
|
|
||||||
|
|
||||||
class LayoutButton(QToolButton):
|
class LayoutButton(QToolButton):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user