Skip to content

Commit

Permalink
feat(settings): allow configuring minimal preset list width
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Dec 31, 2018
1 parent f50d4d1 commit ad17317
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oomox_gui/preset_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from .i18n import _
from .config import USER_COLORS_DIR, COLORS_DIR
from .settings import PRESET_LIST_MIN_SIZE, UI_SETTINGS
from .settings import UI_SETTINGS
from .plugin_api import PLUGIN_PATH_PREFIX
from .plugin_loader import IMPORT_PLUGINS
from .theme_file import get_presets
Expand Down Expand Up @@ -43,7 +43,7 @@ class ThemePresetList(Gtk.ScrolledWindow):

def __init__(self, preset_select_callback):
super().__init__()
self.set_size_request(width=PRESET_LIST_MIN_SIZE, height=-1)
self.set_size_request(width=UI_SETTINGS.preset_list_minimal_width, height=-1)

self.preset_select_callback = preset_select_callback

Expand Down
1 change: 1 addition & 0 deletions oomox_gui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def __init__(self, config_name, default_config):
config_name='ui_config', default_config=dict(
window_width=600,
window_height=400,
preset_list_minimal_width=PRESET_LIST_MIN_SIZE,
preset_list_width=PRESET_LIST_MIN_SIZE,
preset_list_sections_expanded={},
)
Expand Down

0 comments on commit ad17317

Please sign in to comment.