Browse Source

Smaller wx import 2

pull/891/head
Nicolas Braun 3 weeks ago
parent
commit
11bd412ac5
1 changed files with 3 additions and 3 deletions
  1. 6
      gooey/python_bindings/argparse_to_json.py

6
gooey/python_bindings/argparse_to_json.py

@ -5,7 +5,7 @@ import argparse
import json
import os
import sys
import wx
from wx import SystemSettings
from argparse import (
_CountAction,
_HelpAction,
@ -63,7 +63,7 @@ class UnsupportedConfiguration(Exception):
# TODO: merge the default foreground and bg colors from the
# baseline build_spec
def item_default():
use_dark_mode = wx.SystemSettings.GetAppearance().IsUsingDarkBackground()
use_dark_mode = SystemSettings.GetAppearance().IsUsingDarkBackground()
return {
'error_color': '#ea7878',
'label_color': constants.COLOR_WHITE if use_dark_mode else constants.COLOR_BLACK,
@ -269,7 +269,7 @@ def reapply_mutex_groups(mutex_groups, action_groups):
def categorize2(groups, widget_dict, options):
use_dark_mode = wx.SystemSettings.GetAppearance().IsUsingDarkBackground()
use_dark_mode = SystemSettings.GetAppearance().IsUsingDarkBackground()
constants.COLOR_WHITE if use_dark_mode else constants.COLOR_BLACK

Loading…
Cancel
Save