GTK2: Create new dark theme based on adwaita

This commit is contained in:
Daniel Ruiz de Alegría
2021-06-10 23:19:27 +02:00
parent 37aeb58c7e
commit 863a747bd2
295 changed files with 8149 additions and 3067 deletions
+10 -21
View File
@@ -6,45 +6,34 @@ ASSETS_DIR=assets
SRC_FILE_DARK=assets-dark.svg
ASSETS_DIR_DARK=assets-dark
MENU_TOOLBAR_DIR=menubar-toolbar
ASSETS=$(shell xargs < assets.txt)
MENU_ASSETS=$(shell xargs < menu_assets.txt)
DARK_MENU_EXTRA_ASSETS=button button-hover button-active button-insensitive
THEMES_DIR=../../../../../share/themes/
.PHONY: build clean
build: $(SRC_FILE) $(SRC_FILE_DARK)
mkdir -p $(ASSETS_DIR) $(ASSETS_DIR_DARK) $(MENU_TOOLBAR_DIR)
for i in $(ASSETS) $(MENU_ASSETS) ; \
mkdir -p $(ASSETS_DIR) $(ASSETS_DIR_DARK)
for i in $(ASSETS) ; \
do \
echo ; \
echo Rendering $(ASSETS_DIR)/$$i.png ; \
$(INKSCAPE) --export-id=$$i \
--export-id-only \
--export-png=$(ASSETS_DIR)/$$i.png $(SRC_FILE) > /dev/null 2>&1 \
--export-id-only \
--export-background-opacity=0 \
--export-png=$(ASSETS_DIR)/$$i.png $(SRC_FILE) > /dev/null 2>&1 \
&& $(OPTIPNG) $(ASSETS_DIR)/$$i.png ; \
echo ; \
echo Rendering $(ASSETS_DIR_DARK)/$$i.png ; \
$(INKSCAPE) --export-id=$$i \
--export-id-only \
--export-png=$(ASSETS_DIR_DARK)/$$i.png $(SRC_FILE_DARK) > /dev/null 2>&1 \
--export-id-only \
--export-background-opacity=0 \
--export-png=$(ASSETS_DIR_DARK)/$$i.png $(SRC_FILE_DARK) > /dev/null 2>&1 \
&& $(OPTIPNG) $(ASSETS_DIR_DARK)/$$i.png ; \
done
$(foreach ASSET, $(MENU_ASSETS), \
cp $(ASSETS_DIR)/$(ASSET).png $(MENU_TOOLBAR_DIR)/$(ASSET).png && \
cp $(ASSETS_DIR_DARK)/$(ASSET).png $(MENU_TOOLBAR_DIR)/$(ASSET)-dark.png &&) true
$(foreach ASSET, $(DARK_MENU_EXTRA_ASSETS), \
cp $(ASSETS_DIR_DARK)/$(ASSET).png $(MENU_TOOLBAR_DIR)/$(ASSET).png &&) true
mkdir -p $(THEMES_DIR)Kali-Light/gtk-2.0/assets/
cp assets/* $(THEMES_DIR)Kali-Light/gtk-2.0/assets/
mkdir -p $(THEMES_DIR)Kali-Light/gtk-2.0/menubar-toolbar/
cp menubar-toolbar/* $(THEMES_DIR)Kali-Light/gtk-2.0/menubar-toolbar/
mkdir -p $(THEMES_DIR)Kali-Dark/gtk-2.0/assets/
cp assets-dark/* $(THEMES_DIR)Kali-Dark/gtk-2.0/assets/
mkdir -p $(THEMES_DIR)Kali-Dark/gtk-2.0/menubar-toolbar/
cp menubar-toolbar/* $(THEMES_DIR)Kali-Dark/gtk-2.0/menubar-toolbar/
clean:
-rm -r $(ASSETS_DIR) $(ASSETS_DIR_DARK) $(MENU_TOOLBAR_DIR)
-rm -r $(ASSETS_DIR) $(ASSETS_DIR_DARK)
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 249 KiB

+156 -108
View File
@@ -1,120 +1,168 @@
arrow-down
arrow-down-insens
arrow-down-prelight
arrow-left
arrow-left-insens
arrow-left-prelight
arrow-right
arrow-right-insens
arrow-right-prelight
arrow-up
arrow-up-insens
arrow-up-prelight
arrow-down-small
arrow-down-small-insens
arrow-down-small-prelight
arrow-up-small
arrow-up-small-insens
arrow-up-small-prelight
menu-arrow
menu-arrow-prelight
menu-checkbox
menu-checkbox-hover
menu-checkbox-insensitive
menu-checkbox-checked
menu-checkbox-checked-hover
menu-checkbox-checked-insensitive
menu-checkbox-mixed
menu-checkbox-mixed-hover
menu-checkbox-mixed-insensitive
menu-radio
menu-radio-hover
menu-radio-insensitive
menu-radio-checked
menu-radio-checked-hover
menu-radio-checked-insensitive
menu-radio-mixed
menu-radio-mixed-hover
menu-radio-mixed-insensitive
menu-pan-left
menu-pan-left-hover
menu-pan-left-insensitive
menu-pan-right
menu-pan-right-hover
menu-pan-right-insensitive
menu-pan-up
menu-pan-up-insensitive
menu-pan-down
menu-pan-down-insensitive
button
button-hover
button-active
button-insensitive
combo-entry-ltr-entry
combo-entry-ltr-entry-active
combo-entry-ltr-entry-insensitive
combo-entry-ltr-button
combo-entry-ltr-button-hover
combo-entry-ltr-button-active
combo-entry-ltr-button-insensitive
combo-entry-rtl-entry
combo-entry-rtl-entry-active
combo-entry-rtl-entry-insensitive
combo-entry-rtl-button
combo-entry-rtl-button-hover
combo-entry-rtl-button-active
combo-entry-rtl-button-insensitive
entry
entry-active
entry-insensitive
entry-background
entry-background-insensitive
border
frame
frame-inline
frame-notebook
line
focus
handle
handle-horz
handle-vert
menu-border
menubar-item-active
notebook-entry
notebook-entry-active
notebook-entry-insensitive
notebook-combo-entry-ltr-entry
notebook-combo-entry-ltr-entry-active
notebook-combo-entry-ltr-entry-insensitive
notebook-combo-entry-rtl-entry
notebook-combo-entry-rtl-entry-active
notebook-combo-entry-rtl-entry-insensitive
pan-left
pan-left-semi
pan-left-insensitive
pan-right
pan-right-semi
pan-right-insensitive
pan-up
pan-up-insensitive
pan-down
pan-down-insensitive
progressbar-horz
progressbar-horz-trough
progressbar-vert
progressbar-vert-trough
scrollbar-horz-slider
scrollbar-horz-slider-hover
scrollbar-horz-slider-active
scrollbar-horz-trough
scrollbar-vert-slider
scrollbar-vert-slider-hover
scrollbar-vert-slider-active
scrollbar-vert-trough
scrollbar-vert-slider-rtl
scrollbar-vert-slider-hover-rtl
scrollbar-vert-slider-active-rtl
scrollbar-vert-trough-rtl
spin-ltr-down
spin-ltr-down-hover
spin-ltr-down-active
spin-ltr-down-insensitive
spin-ltr-up
spin-ltr-up-hover
spin-ltr-up-active
spin-ltr-up-insensitive
spin-rtl-down
spin-rtl-down-hover
spin-rtl-down-active
spin-rtl-down-insensitive
spin-rtl-up
spin-rtl-up-hover
spin-rtl-up-active
spin-rtl-up-insensitive
spin-up
spin-down
spin-up-insensitive
spin-down-insensitive
scale-slider
scale-slider-hover
scale-slider-active
scale-slider-insensitive
scale-horz-focus
scale-horz-trough
scale-horz-trough-active
scale-vert-trough
scale-vert-trough-active
tab-left
tab-left-active
tab-right
tab-right-active
tab-up
tab-up-active
tab-down
tab-down-active
tab-horz-gap
tab-vert-gap
treeview-pan-up
treeview-pan-up-hover
treeview-pan-up-active
treeview-pan-down
treeview-pan-down-hover
treeview-pan-down-active
treeview-separator-ltr
treeview-separator-rtl
checkbox-checked
checkbox-checked-hover
checkbox-checked-active
checkbox-checked-insensitive
checkbox-unchecked
checkbox-unchecked-hover
checkbox-unchecked-active
checkbox-unchecked-insensitive
checkbox-mixed
checkbox-mixed-hover
checkbox-mixed-active
checkbox-mixed-insensitive
radio-checked
radio-checked-hover
radio-checked-active
radio-checked-insensitive
radio-unchecked
radio-unchecked-hover
radio-unchecked-active
radio-unchecked-insensitive
menu-checkbox-checked
menu-checkbox-checked-selected
menu-checkbox-checked-insensitive
menu-checkbox-unchecked
menu-checkbox-unchecked-selected
menu-checkbox-unchecked-insensitive
menu-radio-checked
menu-radio-checked-selected
menu-radio-checked-insensitive
menu-radio-unchecked
menu-radio-unchecked-selected
menu-radio-unchecked-insensitive
entry-background
entry-background-disabled
entry-bg
entry-active-bg
entry-disabled-bg
entry-notebook
entry-active-notebook
entry-disabled-notebook
combo-entry
combo-entry-focus
combo-entry-insensitive
combo-entry-notebook
combo-entry-focus-notebook
combo-entry-insensitive-notebook
combo-entry-rtl
combo-entry-focus-rtl
combo-entry-insensitive-rtl
combo-entry-notebook-rtl
combo-entry-focus-notebook-rtl
combo-entry-insensitive-notebook-rtl
combo-entry-button
combo-entry-button-insensitive
combo-entry-button-active
combo-entry-button-rtl
combo-entry-button-insensitive-rtl
combo-entry-button-active-rtl
down-background
up-background
down-background-disable
up-background-disable
down-background-rtl
up-background-rtl
down-background-disable-rtl
up-background-disable-rtl
plus
minus
handle-h
handle-v
line-h
line-v
menu
menuitem
null
tree_header
progressbar
progressbar_v
trough-progressbar
trough-progressbar_v
slider
slider-insensitive
slider-prelight
trough-horizontal
trough-vertical
trough-horizontal-active
trough-vertical-active
slider-horiz
slider-horiz-active
slider-horiz-insens
slider-horiz-prelight
slider-vert
slider-vert-active
slider-vert-insens
slider-vert-prelight
trough-scrollbar-horiz
trough-scrollbar-vert
frame
frame-gap-end
frame-gap-start
notebook
tab-bottom-active
tab-top-active
tab-left-active
tab-right-active
inline-toolbar
toolbar
focus-line
radio-mixed
radio-mixed-hover
radio-mixed-active
radio-mixed-insensitive
@@ -1,5 +0,0 @@
entry-toolbar
entry-active-toolbar
entry-disabled-toolbar
menubar
menubar_button