Beispiel #1
0
 def buttonTextColor(self):
     app: Application = Application.instance()
     color = app.palette().color(QPalette.ButtonText)
     return color.name(QColor.HexArgb)
Beispiel #2
0
 def hightlightedTextColor(self):
     app: Application = Application.instance()
     color = app.palette().color(QPalette.HighlightedText)
     return color.name(QColor.HexArgb)
Beispiel #3
0
 def backgroundColor(self):
     app: Application = Application.instance()
     color = app.mainWindow.style().standardPalette().color(
         QPalette.Background)
     return color.name(QColor.HexRgb)
Beispiel #4
0
 def foregroundColor(self):
     app: Application = Application.instance()
     color = app.palette().color(QPalette.Foreground)
     return color.name(QColor.HexArgb)
Beispiel #5
0
 def alternateBaseColor(self):
     app: Application = Application.instance()
     color = app.palette().color(QPalette.AlternateBase)
     return color.name(QColor.HexArgb)