Browse Source

Misc

tags/1.9.4
falkTX 10 years ago
parent
commit
6fa96b999e
2 changed files with 122 additions and 125 deletions
  1. +5
    -4
      source/carla_shared.py
  2. +117
    -121
      source/carla_style.py

+ 5
- 4
source/carla_shared.py View File

@@ -580,11 +580,12 @@ def initHost(initName, libPrefix = None, failError = True):
print("hmmmm...")
return

if not (gCarla.isControl or gCarla.isPlugin):
gCarla.host.set_engine_option(ENGINE_OPTION_NSM_INIT, os.getpid(), initName)
if not gCarla.isPlugin:
gCarla.host.set_engine_option(ENGINE_OPTION_PATH_BINARIES, 0, gCarla.pathBinaries)
gCarla.host.set_engine_option(ENGINE_OPTION_PATH_RESOURCES, 0, gCarla.pathResources)

gCarla.host.set_engine_option(ENGINE_OPTION_PATH_BINARIES, 0, gCarla.pathBinaries)
gCarla.host.set_engine_option(ENGINE_OPTION_PATH_RESOURCES, 0, gCarla.pathResources)
if not gCarla.isControl:
gCarla.host.set_engine_option(ENGINE_OPTION_NSM_INIT, os.getpid(), initName)

# ------------------------------------------------------------------------------------------------------------
# Check if a value is a number (float support)


+ 117
- 121
source/carla_style.py View File

@@ -102,133 +102,129 @@ class CarlaApplication(object):

self.fApp.setStyle("carla" if stylesDir else "fusion")

# create palettes
self.fPalSystem = self.fApp.palette()

self.fPalBlack = QPalette()
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Window, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Active, QPalette.Window, QColor(17, 17, 17))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Window, QColor(17, 17, 17))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.WindowText, QColor(83, 83, 83))
self.fPalBlack.setColor(QPalette.Active, QPalette.WindowText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.WindowText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Base, QColor(6, 6, 6))
self.fPalBlack.setColor(QPalette.Active, QPalette.Base, QColor(7, 7, 7))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Base, QColor(7, 7, 7))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.AlternateBase, QColor(12, 12, 12))
self.fPalBlack.setColor(QPalette.Active, QPalette.AlternateBase, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.AlternateBase, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.ToolTipBase, QColor(4, 4, 4))
self.fPalBlack.setColor(QPalette.Active, QPalette.ToolTipBase, QColor(4, 4, 4))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.ToolTipBase, QColor(4, 4, 4))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.ToolTipText, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Active, QPalette.ToolTipText, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.ToolTipText, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Text, QColor(74, 74, 74))
self.fPalBlack.setColor(QPalette.Active, QPalette.Text, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Text, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Button, QColor(24, 24, 24))
self.fPalBlack.setColor(QPalette.Active, QPalette.Button, QColor(28, 28, 28))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Button, QColor(28, 28, 28))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.ButtonText, QColor(90, 90, 90))
self.fPalBlack.setColor(QPalette.Active, QPalette.ButtonText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.ButtonText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Active, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Light, QColor(191, 191, 191))
self.fPalBlack.setColor(QPalette.Active, QPalette.Light, QColor(191, 191, 191))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Light, QColor(191, 191, 191))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Midlight, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Active, QPalette.Midlight, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Midlight, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Dark, QColor(129, 129, 129))
self.fPalBlack.setColor(QPalette.Active, QPalette.Dark, QColor(129, 129, 129))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Dark, QColor(129, 129, 129))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Mid, QColor(94, 94, 94))
self.fPalBlack.setColor(QPalette.Active, QPalette.Mid, QColor(94, 94, 94))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Mid, QColor(94, 94, 94))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Shadow, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Active, QPalette.Shadow, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Shadow, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Highlight, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Active, QPalette.Highlight, QColor(60, 60, 60))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Highlight, QColor(34, 34, 34))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.HighlightedText, QColor(83, 83, 83))
self.fPalBlack.setColor(QPalette.Active, QPalette.HighlightedText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.HighlightedText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Link, QColor(34, 34, 74))
self.fPalBlack.setColor(QPalette.Active, QPalette.Link, QColor(100, 100, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Link, QColor(100, 100, 230))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.LinkVisited, QColor(74, 34, 74))
self.fPalBlack.setColor(QPalette.Active, QPalette.LinkVisited, QColor(230, 100, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.LinkVisited, QColor(230, 100, 230))

self.fPalBlue = QPalette()
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Window, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Active, QPalette.Window, QColor(37, 40, 45))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Window, QColor(37, 40, 45))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.WindowText, QColor(89, 95, 104))
self.fPalBlue.setColor(QPalette.Active, QPalette.WindowText, QColor(223, 237, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.WindowText, QColor(223, 237, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Base, QColor(48, 53, 60))
self.fPalBlue.setColor(QPalette.Active, QPalette.Base, QColor(55, 61, 69))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Base, QColor(55, 61, 69))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.AlternateBase, QColor(60, 64, 67))
self.fPalBlue.setColor(QPalette.Active, QPalette.AlternateBase, QColor(69, 73, 77))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.AlternateBase, QColor(69, 73, 77))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.ToolTipBase, QColor(182, 193, 208))
self.fPalBlue.setColor(QPalette.Active, QPalette.ToolTipBase, QColor(182, 193, 208))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.ToolTipBase, QColor(182, 193, 208))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.ToolTipText, QColor(42, 44, 48))
self.fPalBlue.setColor(QPalette.Active, QPalette.ToolTipText, QColor(42, 44, 48))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.ToolTipText, QColor(42, 44, 48))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Text, QColor(96, 103, 113))
self.fPalBlue.setColor(QPalette.Active, QPalette.Text, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Text, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Button, QColor(51, 55, 62))
self.fPalBlue.setColor(QPalette.Active, QPalette.Button, QColor(59, 63, 71))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Button, QColor(59, 63, 71))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.ButtonText, QColor(98, 104, 114))
self.fPalBlue.setColor(QPalette.Active, QPalette.ButtonText, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.ButtonText, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlue.setColor(QPalette.Active, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Light, QColor(59, 64, 72))
self.fPalBlue.setColor(QPalette.Active, QPalette.Light, QColor(63, 68, 76))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Light, QColor(63, 68, 76))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Midlight, QColor(48, 52, 59))
self.fPalBlue.setColor(QPalette.Active, QPalette.Midlight, QColor(51, 56, 63))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Midlight, QColor(51, 56, 63))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Dark, QColor(18, 19, 22))
self.fPalBlue.setColor(QPalette.Active, QPalette.Dark, QColor(20, 22, 25))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Dark, QColor(20, 22, 25))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Mid, QColor(28, 30, 34))
self.fPalBlue.setColor(QPalette.Active, QPalette.Mid, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Mid, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Shadow, QColor(13, 14, 16))
self.fPalBlue.setColor(QPalette.Active, QPalette.Shadow, QColor(15, 16, 18))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Shadow, QColor(15, 16, 18))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Highlight, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Active, QPalette.Highlight, QColor(14, 14, 17))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Highlight, QColor(27, 28, 33))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.HighlightedText, QColor(89, 95, 104))
self.fPalBlue.setColor(QPalette.Active, QPalette.HighlightedText, QColor(217, 234, 253))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.HighlightedText, QColor(223, 237, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Link, QColor(79, 100, 118))
self.fPalBlue.setColor(QPalette.Active, QPalette.Link, QColor(156, 212, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Link, QColor(156, 212, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.LinkVisited, QColor(51, 74, 118))
self.fPalBlue.setColor(QPalette.Active, QPalette.LinkVisited, QColor(64, 128, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.LinkVisited, QColor(64, 128, 255))

# set palette
proThemeColor = settings.value(CARLA_KEY_MAIN_PRO_THEME_COLOR, "Black", type=str).lower()

if proThemeColor == "black":
self.fPalBlack = QPalette()
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Window, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Active, QPalette.Window, QColor(17, 17, 17))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Window, QColor(17, 17, 17))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.WindowText, QColor(83, 83, 83))
self.fPalBlack.setColor(QPalette.Active, QPalette.WindowText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.WindowText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Base, QColor(6, 6, 6))
self.fPalBlack.setColor(QPalette.Active, QPalette.Base, QColor(7, 7, 7))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Base, QColor(7, 7, 7))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.AlternateBase, QColor(12, 12, 12))
self.fPalBlack.setColor(QPalette.Active, QPalette.AlternateBase, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.AlternateBase, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.ToolTipBase, QColor(4, 4, 4))
self.fPalBlack.setColor(QPalette.Active, QPalette.ToolTipBase, QColor(4, 4, 4))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.ToolTipBase, QColor(4, 4, 4))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.ToolTipText, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Active, QPalette.ToolTipText, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.ToolTipText, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Text, QColor(74, 74, 74))
self.fPalBlack.setColor(QPalette.Active, QPalette.Text, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Text, QColor(230, 230, 230))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Button, QColor(24, 24, 24))
self.fPalBlack.setColor(QPalette.Active, QPalette.Button, QColor(28, 28, 28))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Button, QColor(28, 28, 28))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.ButtonText, QColor(90, 90, 90))
self.fPalBlack.setColor(QPalette.Active, QPalette.ButtonText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.ButtonText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Active, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Light, QColor(191, 191, 191))
self.fPalBlack.setColor(QPalette.Active, QPalette.Light, QColor(191, 191, 191))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Light, QColor(191, 191, 191))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Midlight, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Active, QPalette.Midlight, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Midlight, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Dark, QColor(129, 129, 129))
self.fPalBlack.setColor(QPalette.Active, QPalette.Dark, QColor(129, 129, 129))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Dark, QColor(129, 129, 129))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Mid, QColor(94, 94, 94))
self.fPalBlack.setColor(QPalette.Active, QPalette.Mid, QColor(94, 94, 94))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Mid, QColor(94, 94, 94))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Shadow, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Active, QPalette.Shadow, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Shadow, QColor(155, 155, 155))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Highlight, QColor(14, 14, 14))
self.fPalBlack.setColor(QPalette.Active, QPalette.Highlight, QColor(60, 60, 60))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Highlight, QColor(34, 34, 34))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.HighlightedText, QColor(83, 83, 83))
self.fPalBlack.setColor(QPalette.Active, QPalette.HighlightedText, QColor(255, 255, 255))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.HighlightedText, QColor(240, 240, 240))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.Link, QColor(34, 34, 74))
self.fPalBlack.setColor(QPalette.Active, QPalette.Link, QColor(100, 100, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.Link, QColor(100, 100, 230))
self.fPalBlack.setColor(QPalette.Disabled, QPalette.LinkVisited, QColor(74, 34, 74))
self.fPalBlack.setColor(QPalette.Active, QPalette.LinkVisited, QColor(230, 100, 230))
self.fPalBlack.setColor(QPalette.Inactive, QPalette.LinkVisited, QColor(230, 100, 230))
self.fApp.setPalette(self.fPalBlack)

elif proThemeColor == "blue":
self.fPalBlue = QPalette()
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Window, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Active, QPalette.Window, QColor(37, 40, 45))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Window, QColor(37, 40, 45))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.WindowText, QColor(89, 95, 104))
self.fPalBlue.setColor(QPalette.Active, QPalette.WindowText, QColor(223, 237, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.WindowText, QColor(223, 237, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Base, QColor(48, 53, 60))
self.fPalBlue.setColor(QPalette.Active, QPalette.Base, QColor(55, 61, 69))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Base, QColor(55, 61, 69))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.AlternateBase, QColor(60, 64, 67))
self.fPalBlue.setColor(QPalette.Active, QPalette.AlternateBase, QColor(69, 73, 77))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.AlternateBase, QColor(69, 73, 77))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.ToolTipBase, QColor(182, 193, 208))
self.fPalBlue.setColor(QPalette.Active, QPalette.ToolTipBase, QColor(182, 193, 208))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.ToolTipBase, QColor(182, 193, 208))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.ToolTipText, QColor(42, 44, 48))
self.fPalBlue.setColor(QPalette.Active, QPalette.ToolTipText, QColor(42, 44, 48))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.ToolTipText, QColor(42, 44, 48))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Text, QColor(96, 103, 113))
self.fPalBlue.setColor(QPalette.Active, QPalette.Text, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Text, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Button, QColor(51, 55, 62))
self.fPalBlue.setColor(QPalette.Active, QPalette.Button, QColor(59, 63, 71))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Button, QColor(59, 63, 71))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.ButtonText, QColor(98, 104, 114))
self.fPalBlue.setColor(QPalette.Active, QPalette.ButtonText, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.ButtonText, QColor(210, 222, 240))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlue.setColor(QPalette.Active, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.BrightText, QColor(255, 255, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Light, QColor(59, 64, 72))
self.fPalBlue.setColor(QPalette.Active, QPalette.Light, QColor(63, 68, 76))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Light, QColor(63, 68, 76))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Midlight, QColor(48, 52, 59))
self.fPalBlue.setColor(QPalette.Active, QPalette.Midlight, QColor(51, 56, 63))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Midlight, QColor(51, 56, 63))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Dark, QColor(18, 19, 22))
self.fPalBlue.setColor(QPalette.Active, QPalette.Dark, QColor(20, 22, 25))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Dark, QColor(20, 22, 25))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Mid, QColor(28, 30, 34))
self.fPalBlue.setColor(QPalette.Active, QPalette.Mid, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Mid, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Shadow, QColor(13, 14, 16))
self.fPalBlue.setColor(QPalette.Active, QPalette.Shadow, QColor(15, 16, 18))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Shadow, QColor(15, 16, 18))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Highlight, QColor(32, 35, 39))
self.fPalBlue.setColor(QPalette.Active, QPalette.Highlight, QColor(14, 14, 17))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Highlight, QColor(27, 28, 33))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.HighlightedText, QColor(89, 95, 104))
self.fPalBlue.setColor(QPalette.Active, QPalette.HighlightedText, QColor(217, 234, 253))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.HighlightedText, QColor(223, 237, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.Link, QColor(79, 100, 118))
self.fPalBlue.setColor(QPalette.Active, QPalette.Link, QColor(156, 212, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.Link, QColor(156, 212, 255))
self.fPalBlue.setColor(QPalette.Disabled, QPalette.LinkVisited, QColor(51, 74, 118))
self.fPalBlue.setColor(QPalette.Active, QPalette.LinkVisited, QColor(64, 128, 255))
self.fPalBlue.setColor(QPalette.Inactive, QPalette.LinkVisited, QColor(64, 128, 255))
self.fApp.setPalette(self.fPalBlue)

print("Using \"%s\" theme" % self.fApp.style().objectName())


Loading…
Cancel
Save