Skip to content

Commit

Permalink
fix: (export_common: ExportDialogWithOptions): add override_options
Browse files Browse the repository at this point in the history
… support; (plugins: arc): use `ExportDialogWithOptions` instead of `CommonGtkThemeExportDialog` (re: #480)
  • Loading branch information
actionless committed Jun 19, 2023
1 parent 628f771 commit db12405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion oomox_gui/export_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ def __init__(
colorscheme: "ThemeT",
theme_name: str,
export_options: "dict[str, Any] | None" = None,
override_options: dict[str, "Any"] | None = None,
headline: str | None = None,
**kwargs: "Any",
) -> None:
self.option_widgets: dict[str, Gtk.Widget] = {}
export_options = export_options or {}
export_options = override_options or export_options or {}
super().__init__(
transient_for=transient_for, colorscheme=colorscheme, theme_name=theme_name,
headline=headline or translate("Theme Export Options"),
Expand Down
4 changes: 2 additions & 2 deletions plugins/theme_arc/oomox_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from gi.repository import Gtk

from oomox_gui.color import mix_theme_colors
from oomox_gui.export_common import CommonGtkThemeExportDialog
from oomox_gui.export_common import ExportDialogWithOptions
from oomox_gui.i18n import translate

# from oomox_gui.export_common import OPTION_GTK2_HIDPI
Expand All @@ -25,7 +25,7 @@
OPTION_EXPORT_XFWM_THEME: "Final" = "OPTION_EXPORT_XFWM_THEME"


class ArcThemeExportDialog(CommonGtkThemeExportDialog):
class ArcThemeExportDialog(ExportDialogWithOptions):

config_name = "arc_theme"
timeout = 1000
Expand Down

0 comments on commit db12405

Please sign in to comment.