A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/themix-project/themix-gui/commit/731ad1fcb0e2f7553345c8ef26111c814a410326 below:

allow to choose custom export dir · themix-project/themix-gui@731ad1f · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+14

-8

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+14

-8

lines changed Original file line number Diff line number Diff line change

@@ -57,6 +57,10 @@ do

57 57

OUTPUT_THEME_NAME="${2}"

58 58

shift

59 59

;;

60 +

-d|--destdir)

61 +

output_dir="$2"

62 +

shift

63 +

;;

60 64

-c|--color)

61 65

ICONS_ARCHDROID="${2}"

62 66

shift

@@ -91,7 +95,7 @@ fi

91 95 92 96 93 97

OUTPUT_THEME_NAME="${OUTPUT_THEME_NAME-oomox-$THEME-flat}"

94 -

output_dir="${HOME}/.icons/${OUTPUT_THEME_NAME}"

98 +

output_dir="${output_dir:-$HOME/.icons/$OUTPUT_THEME_NAME}"

95 99 96 100

tmp_dir="$(mktemp -d)"

97 101

function post_clean_up {

Original file line number Diff line number Diff line change

@@ -1,30 +1,32 @@

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 8 8 9 9

PLUGIN_DIR = os.path.dirname(os.path.realpath(__file__))

10 10 11 11 12 -

class NumixIconsExportDialog(FileBasedExportDialog):

12 +

class NumixIconsExportDialog(CommonIconThemeExportDialog):

13 + 13 14

timeout = 100

15 +

config_name = 'icons_numix'

14 16 15 17

def do_export(self):

18 +

export_path = os.path.expanduser(

19 +

self.option_widgets[self.OPTIONS.DEFAULT_PATH].get_text()

20 +

)

16 21

self.command = [

17 22

"bash",

18 23

os.path.join(PLUGIN_DIR, "change_color.sh"),

19 -

"-o", self.theme_name,

24 +

"--output", self.theme_name,

25 +

"--destdir", export_path,

20 26

self.temp_theme_path,

21 27

]

22 28

super().do_export()

23 29 24 -

def __init__(self, *args, **kwargs):

25 -

super().__init__(*args, **kwargs)

26 -

self.do_export()

27 - 28 30 29 31

class Plugin(OomoxIconsPlugin):

30 32

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