+14
-12
lines changedFilter options
+14
-12
lines changed Original file line number Diff line number Diff line change
@@ -37,6 +37,8 @@ def __init__(self, config_name, default_config=None):
37
37
38
38
class ExportDialog(Gtk.Dialog):
39
39
40
+
colorscheme = None
41
+
theme_name = None
40
42
command = None
41
43
timeout = 300
42
44
@@ -80,15 +82,22 @@ def set_text(self, text):
80
82
81
83
def __init__(
82
84
self, transient_for,
85
+
colorscheme,
86
+
theme_name,
83
87
headline=_("Export Theme"),
84
88
width=150,
85
-
height=80
89
+
height=80,
86
90
):
91
+
self.theme_name = 'oomox-' + theme_name.split('/')[-1]
92
+
93
+
# @TODO: make sure it doesn't break things:
94
+
self.colorscheme = colorscheme
95
+
# from .terminal import generate_terminal_colors_for_oomox
96
+
# self.colorscheme = generate_terminal_colors_for_oomox(colorscheme)
97
+
87
98
Gtk.Dialog.__init__(self, headline, transient_for, 0)
88
99
self.set_default_size(width, height)
89
-
90
100
self.label = CenterLabel()
91
-
92
101
self.spinner = Gtk.Spinner()
93
102
94
103
# Scrollable log window:
@@ -180,20 +189,13 @@ def do_export():
180
189
181
190
class FileBasedExportDialog(ExportDialog):
182
191
183
-
theme_name = None
184
192
temp_theme_path = None
185
193
186
-
def __init__(self, transient_for, colorscheme, theme_name, **kwargs):
194
+
def __init__(self, transient_for, **kwargs):
187
195
super().__init__(transient_for=transient_for, **kwargs)
188
-
self.theme_name = 'oomox-' + theme_name.split('/')[-1]
189
-
190
-
# @TODO: make sure it doesn't break things:
191
-
self.colorscheme = colorscheme
192
-
# from .terminal import generate_terminal_colors_for_oomox
193
-
# self.colorscheme = generate_terminal_colors_for_oomox(colorscheme)
194
196
195
197
self.temp_theme_path = save_colorscheme(
196
-
preset_name=theme_name,
198
+
preset_name=self.theme_name,
197
199
colorscheme=self.colorscheme,
198
200
path=tempfile.mkstemp()[1]
199
201
)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4