-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17bfe54
commit a9162ab
Showing
28 changed files
with
422 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
set SCRIPT_DIR=BreezeStyleSheets | ||
make-resource.py -base-dir %SCRIPT_DIR%\ -find-files -output breeze-dark -style dark.qss | ||
set ICONS_DIR=icons/nowshed | ||
make-resource.py -base-dir %SCRIPT_DIR%\ -find-files -output breeze-dark -config dark-config.json -icons-dir %ICONS_DIR% -style dark.qss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
|
||
set SCRIPT_DIR=mumble-theme | ||
set PATH=%PATH%;C:\Users\Prince\Downloads\Compressed\qtsass_0.2.2_win64; | ||
pushd %SCRIPT_DIR%\source | ||
qtsass -o ../Dark.qss Dark.scss | ||
popd | ||
make-resource.py -base-dir %SCRIPT_DIR%\ -find-files -config dark-config.json -output mumble-dark -style dark.qss | ||
rd /q /s mumble-icons | ||
mkdir mumble-icons | ||
fill-icons.py nowshed #e1bee7 mumble-icons | ||
REM for /r icons/nowshed/ %%i in (*.svg) do powershell -Command "(gc %%~dpnxi) -replace '#4285f4', '#6a1b9a' | Out-File -encoding ASCII mumble-icons/%%~nxi" | ||
make-resource.py -base-dir %SCRIPT_DIR%\ -find-files -config dark-config.json -icons-dir mumble-icons -output mumble-dark-nowshed-recolored -style dark.qss | ||
rd /q /s mumble-icons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
set SCRIPT_DIR=QDarkStyleSheet\qdarkstyle | ||
make-resource.py -base-dir %SCRIPT_DIR%\ -dir-prefix qss_icons -output darkstylesheet -style style.qss rc\* svg\* | ||
set ICONS_DIR=icons/nowshed | ||
make-resource.py -base-dir %SCRIPT_DIR%\ -config dark-config.json -dir-prefix qss_icons -output darkstylesheet -icons-dir %ICONS_DIR% -style style.qss rc\* svg\* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import sys | ||
import os | ||
|
||
icons_map = { 'originals': { 'color': '#375273', 'dir': 'icons/originals/' }, 'nowshed': { 'color': '#4285f4', 'dir': 'icons/nowshed/' } } | ||
|
||
def change(icon_set, new_color, output_dir): | ||
originals_dir = icons_map[icon_set]['dir'] | ||
original_color = icons_map[icon_set]['color'] | ||
|
||
if not os.path.exists(output_dir): | ||
os.mkdir(output_dir) | ||
for subdir, dirs, files in os.walk(originals_dir): | ||
for file in files: | ||
svg_file = os.path.join(subdir, file) | ||
if not svg_file.endswith(".svg"): | ||
continue | ||
print(svg_file) | ||
new_svg_file = os.path.join(output_dir, file) | ||
content = open(svg_file, 'rb').read() | ||
content = content.replace(original_color.encode('utf'), new_color.encode('utf')) | ||
open(new_svg_file, 'wb').write(content) | ||
|
||
|
||
if __name__ == "__main__": | ||
change(sys.argv[1], sys.argv[2], sys.argv[3]) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.