+11
-9
lines changedFilter options
+11
-9
lines changed Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
1
1
import os
2
2
3
3
from oomox_gui.config import FALLBACK_COLOR
4
-
from oomox_gui.export_common import FileBasedExportDialog
4
+
from oomox_gui.export_common import CommonIconThemeExportDialog
5
5
from oomox_gui.plugin_api import OomoxIconsPlugin
6
6
from oomox_gui.i18n import translate
7
7
@@ -10,22 +10,24 @@
10
10
GNOME_COLORS_ICON_THEME_DIR = os.path.join(PLUGIN_DIR, "gnome-colors-icon-theme/")
11
11
12
12
13
-
class GnomeColorsIconsExportDialog(FileBasedExportDialog):
13
+
class GnomeColorsIconsExportDialog(CommonIconThemeExportDialog):
14
+
14
15
timeout = 600
16
+
config_name = 'icons_gnomecolors'
15
17
16
18
def do_export(self):
19
+
export_path = os.path.expanduser(
20
+
self.option_widgets[self.OPTIONS.DEFAULT_PATH].get_text()
21
+
)
17
22
self.command = [
18
23
"bash",
19
24
os.path.join(GNOME_COLORS_ICON_THEME_DIR, "change_color.sh"),
20
-
"-o", self.theme_name,
25
+
"--output", self.theme_name,
26
+
"--destdir", export_path,
21
27
self.temp_theme_path,
22
28
]
23
29
super().do_export()
24
30
25
-
def __init__(self, *args, **kwargs):
26
-
super().__init__(*args, **kwargs)
27
-
self.do_export()
28
-
29
31
30
32
class Plugin(OomoxIconsPlugin):
31
33
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ root="$(readlink -f "$(dirname "$0")")"
6
6
print_usage() {
7
7
echo "
8
8
usage:
9
-
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] PRESET_NAME_OR_PATH
9
+
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] [-d DEST_DIR] PRESET_NAME_OR_PATH
10
10
11
11
examples:
12
12
$0 -o droid_test_3 -c 5e468c
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