+19
-14
lines changedFilter options
+19
-14
lines changed Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ print_usage() {
8
8
9
9
echo "
10
10
usage:
11
-
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] PRESET_NAME_OR_PATH
11
+
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] [-d DEST_DIR] PRESET_NAME_OR_PATH
12
12
13
13
examples:
14
14
$0 -o droid_test_3 -c 5e468c
@@ -55,6 +55,10 @@ do
55
55
OUTPUT_THEME_NAME="$2"
56
56
shift
57
57
;;
58
+
-d|--destdir)
59
+
output_dir="$2"
60
+
shift
61
+
;;
58
62
-c|--color)
59
63
ICONS_COLOR="${2#\#}" # remove leading hash symbol
60
64
shift
@@ -99,7 +103,7 @@ trap post_clean_up EXIT SIGHUP SIGINT SIGTERM
99
103
: "${ICONS_COLOR:=$SEL_BG}"
100
104
: "${OUTPUT_THEME_NAME:=oomox-$THEME}"
101
105
102
-
output_dir="$HOME/.icons/$OUTPUT_THEME_NAME"
106
+
output_dir="${output_dir:-$HOME/.icons/$OUTPUT_THEME_NAME}"
103
107
104
108
light_folder_fallback="$ICONS_COLOR"
105
109
medium_base_fallback="$(darker "$ICONS_COLOR" 20)"
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
from oomox_gui.color import mix_theme_colors
@@ -10,22 +10,24 @@
10
10
PLUGIN_DIR = os.path.dirname(os.path.realpath(__file__))
11
11
12
12
13
-
class PapirusIconsExportDialog(FileBasedExportDialog):
13
+
class PapirusIconsExportDialog(CommonIconThemeExportDialog):
14
+
14
15
timeout = 100
16
+
config_name = 'icons_papirus'
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(PLUGIN_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
name = 'papirus_icons'
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ print_usage() {
8
8
9
9
echo "
10
10
usage:
11
-
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] PRESET_NAME_OR_PATH
11
+
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] [-d DEST_DIR] PRESET_NAME_OR_PATH
12
12
13
13
examples:
14
14
$0 -o droid_test_3 -c 5e468c
Original file line number Diff line number Diff line change
@@ -19,11 +19,10 @@ def do_export(self):
19
19
export_path = os.path.expanduser(
20
20
self.option_widgets[self.OPTIONS.DEFAULT_PATH].get_text()
21
21
)
22
-
23
22
self.command = [
24
23
"bash",
25
24
os.path.join(PLUGIN_DIR, "change_color.sh"),
26
-
"-o", self.theme_name,
25
+
"--output", self.theme_name,
27
26
"--destdir", export_path,
28
27
self.temp_theme_path,
29
28
]
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ print_usage() {
8
8
9
9
echo "
10
10
usage:
11
-
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] PRESET_NAME_OR_PATH
11
+
$0 [-o OUTPUT_THEME_NAME] [-c COLOR] [-d DEST_DIR] PRESET_NAME_OR_PATH
12
12
13
13
examples:
14
14
$0 -o droid_test_3 -c 5e468c
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ def do_export(self):
24
24
self.command = [
25
25
"bash",
26
26
os.path.join(PLUGIN_DIR, "change_color.sh"),
27
-
"-o", self.theme_name,
27
+
"--output", self.theme_name,
28
28
"--destdir", export_path,
29
29
self.temp_theme_path,
30
30
]
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