themix-project / themix-gui

Graphical application for generating different color variations of Oomox (Numix-based) theme (GTK2, GTK3, Cinnamon, GNOME, Openbox, Xfwm), Archdroid, Gnome-Color, Numix, Papirus and Suru++ icon themes. Have a hack for HiDPI in gtk2. Its Base16 plugin also allowing a lot of app themes support like Alacritty, Emacs, GTK4, KDE, VIM and many more.
GNU General Public License v3.0
2.11k stars 69 forks source link

omox cli does not work #542

Closed golam71 closed 4 months ago

golam71 commented 4 months ago

so my theme is generated from xresources as i use xresources reverse for the theme and script was working fine but it broke in last update (i use archlinux)

so when i run

bash /opt/oomox/plugins/theme_oomox/change_color.sh /opt/oomox/scripted_colors/xresources/xresources-reverse

it returns

/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xTI: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xQU: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xAN: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xTI: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xQU: invalid hex number

Building theme at /home/golam71/.themes/oomox-xresources-reverse

make clean_gtk3
make clean_gtk320
sassc -I "cinnamon/scss" "cinnamon/scss/cinnamon.scss" "cinnamon/cinnamon.css"
make[1]: Entering directory '/home/golam71/.themes/oomox-xresources-reverse'
rm -rf "gtk-3.20/dist"
make[1]: Entering directory '/home/golam71/.themes/oomox-xresources-reverse'
rm -rf "gtk-3.0/dist"
rm -f "gtk-3.20/gtk.gresource"
rm -f "gtk-3.0/gtk.gresource"
make[1]: Leaving directory '/home/golam71/.themes/oomox-xresources-reverse'
make[1]: Leaving directory '/home/golam71/.themes/oomox-xresources-reverse'
make gresource_gtk320
make gresource_gtk3
make[1]: Entering directory '/home/golam71/.themes/oomox-xresources-reverse'
mkdir -p "gtk-3.20/dist"
make[1]: Entering directory '/home/golam71/.themes/oomox-xresources-reverse'
mkdir -p "gtk-3.0/dist"
sassc -I "gtk-3.0/scss" "gtk-3.0/scss/gtk.scss" "gtk-3.0/dist/gtk.css"
sassc -I "gtk-3.20/scss" "gtk-3.20/scss/gtk.scss" "gtk-3.20/dist/gtk.css"
Error: argument `$color` of `fade-out($color, $amount)` must be a color
        on line 11:17 of cinnamon/scss/_global.scss, in function `fade-out`
        from line 11:17 of cinnamon/scss/_global.scss
        from line 1:9 of cinnamon/scss/cinnamon.scss
>> $dark_bg_color: fade-out(#AntiqueWhite, 1 - 1);

   ----------------^
make: *** [Makefile:91: cinnamon/cinnamon.css] Error 65
make: *** Waiting for unfinished jobs....
Error: argument `$color` of `darken($color, $amount)` must be a color
        on line 129:47 of gtk-3.20/scss/_global.scss, in function `darken`
        from line 129:47 of gtk-3.20/scss/_global.scss, in function `if`
        from line 129:23 of gtk-3.20/scss/_global.scss
        from line 2:9 of gtk-3.20/scss/_widgets.scss
        from line 3:9 of gtk-3.20/scss/gtk.scss
>> kdrop_base_color: if($variant == 'light', darken($base_color, .01), lighten(
   ------------------------------------------^
make[1]: *** [Makefile:57: gtk-3.20/dist/gtk.css] Error 65
make[1]: Leaving directory '/home/golam71/.themes/oomox-xresources-reverse'
make: *** [Makefile:82: gtk320] Error 2
Error: argument `$color` of `lightness($color)` must be a color
        on line 135:26 of gtk-3.0/scss/widgets/_button.scss, in function `lightness`
        from line 135:26 of gtk-3.0/scss/widgets/_button.scss, in function `if`
        from line 135:23 of gtk-3.0/scss/widgets/_button.scss, in mixin `button`
        from line 67:32 of gtk-3.0/scss/widgets/_misc.scss, in mixin `@content`
        from line 7:9 of gtk-3.0/scss/_functions.scss, in mixin `exports`
        from line 55:10 of gtk-3.0/scss/widgets/_misc.scss
        from line 15:9 of gtk-3.0/scss/_widgets.scss
        from line 3:9 of gtk-3.0/scss/gtk.scss
>>     $border_strength: if(lightness($bg) > 50, .1, .2);

   -------------------------^
make[1]: *** [Makefile:23: gtk-3.0/dist/gtk.css] Error 65
make[1]: Leaving directory '/home/golam71/.themes/oomox-xresources-reverse'
make: *** [Makefile:48: gtk3] Error 2

so it seems i cant generate themes from the cli but it works fine from themix gui so what is wrong did the cli command change? also i looked at the cli section i couldnt find anything please help

actionless commented 4 months ago

it's clearly that there is smth wrong with your colors:

/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xTI: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xQU: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xAN: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xTI: invalid hex number
/opt/oomox/plugins/theme_oomox/scripts/mix.sh: line 7: printf: 0xQU: invalid hex number

double-check that the theme-script /opt/oomox/scripted_colors/xresources/xresources-reverse returns correct colors and adjust it for your setup if needed:

bash -c 'set -x ; source /opt/oomox/scripted_colors/xresources/xresources-reverse'
golam71 commented 4 months ago

thank you for pointing out the issue it was my xresources for pywal users i advice remove the xresources and run a xrdb merge

actionless commented 4 months ago

also see the documentation for the new Multi-Export CLI - it will be the default one in the near future