diff --git a/de/home/.config/de-vars/colors/generate.sh b/de/home/.config/de-vars/colors/generate.sh index fedb70f..2a60010 100755 --- a/de/home/.config/de-vars/colors/generate.sh +++ b/de/home/.config/de-vars/colors/generate.sh @@ -1,81 +1,134 @@ #!/usr/bin/env bash +if ! which pastel;then + printf "pastel is not installed\n" + exit 1 +fi + source ./active/colors.sh +theme_color="${de_color_13}" +white="${de_color_15}" +black="${de_color_0}" +transparency_strength="150" #out of 255 + qt_conf_line(){ printf '%s=%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s\n' \ $@ } create_qt_conf(){ + + active_colors=( + #window text + "#ff${de_color_13}" + #button background + "#64${de_color_0}" + #bright + "#64${de_color_15}" + #less bright + "#64${de_color_7}" + #dark + "#64${de_color_8}" + #less dark + "#64${de_color_7}" + #normal text + "#ff${de_color_15}" + #bright text + "#ff${de_color_15}" + #button text + "#ff${de_color_15}" + #normal background + "#64${de_color_13}" + #window + "#64${de_color_13}" + #shadow + "#64${de_color_15}" + #highlight + "#64${de_color_5}" + #highlighted text + "#ff${de_color_1}" + #link + "#ff${de_color_5}" + #visited link + "#ff${de_color_9}" + #alternate background + "#19${de_color_8}" + #default + "#ff${de_color_15}" + #tooltip background + "#64${de_color_0}" + #tooltip text + "#ff${de_color_15}" + #placeholder text + "#80${de_color_15}" + #accent + "#e1${de_color_13}" + ) + + #color definitions +# window_text=$ +# button_background= +# bright= +# less_bright= +# dark= +# less_dark= +# normal_text= +# bright_text= +# button_text= +# normal_background= +# window= +# shadow= +# highlight= +# highlighted_text= +# link= +# visited_link= +# alternate_background= +# default= +# tooltip_background= +# tooltip_text= +# placeholder_text= +# accent= + # printf '%s=%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s\n' \ qt_conf_line \ "active_colors" \ - "#ff${de_color_13}" `#window text` \ - "#64${de_color_0}" `#button background` \ - "#64${de_color_15}" `#bright` \ - "#64${de_color_7}" `#less bright` \ - "#64${de_color_8}" `#dark` \ - "#64${de_color_7}" `#less dark` \ - "#ff${de_color_15}" `#normal text` \ - "#ff${de_color_15}" `#bright text` \ - "#ff${de_color_15}" `#button text` \ - "#64${de_color_13}" `#normal background` \ - "#64${de_color_13}" `#window` \ - "#64${de_color_15}" `#shadow` \ - "#64${de_color_5}" `#highlight` \ - "#ff${de_color_1}" `#highlighted text` \ - "#ff${de_color_5}" `#link` \ - "#ff${de_color_9}" `#visited link` \ - "#19${de_color_8}" `#alternate background` \ - "#ff${de_color_15}" `#default` \ - "#64${de_color_0}" `#tooltip background` \ - "#ff${de_color_15}" `#tooltip text` \ - "#80${de_color_15}" `#placeholder text` \ - "#e1${de_color_13}" `#accent` + ${active_colors[@]} +# "#ff${de_color_13}" `#window text` \ +# "#64${de_color_0}" `#button background` \ +# "#64${de_color_15}" `#bright` \ +# "#64${de_color_7}" `#less bright` \ +# "#64${de_color_8}" `#dark` \ +# "#64${de_color_7}" `#less dark` \ +# "#ff${de_color_15}" `#normal text` \ +# "#ff${de_color_15}" `#bright text` \ +# "#ff${de_color_15}" `#button text` \ +# "#64${de_color_13}" `#normal background` \ +# "#64${de_color_13}" `#window` \ +# "#64${de_color_15}" `#shadow` \ +# "#64${de_color_5}" `#highlight` \ +# "#ff${de_color_1}" `#highlighted text` \ +# "#ff${de_color_5}" `#link` \ +# "#ff${de_color_9}" `#visited link` \ +# "#19${de_color_8}" `#alternate background` \ +# "#ff${de_color_15}" `#default` \ +# "#64${de_color_0}" `#tooltip background` \ +# "#ff${de_color_15}" `#tooltip text` \ +# "#80${de_color_15}" `#placeholder text` \ +# "#e1${de_color_13}" `#accent` + + for color in ${active_colors[@]};do + echo "${color}" + done + +# qt_conf_line \ +# "active_colors" \ +# + + qt_conf_line \ + "inactive_colors" \ + ${active_colors[@]} } create_qt_conf #window text - -#button background - -#bright - -#less bright - -#dark - -#less dark - -#normal text - -#bright text - -#button text - -#normal background - -#window - -#shadow - -#highlight - -#highlighted text - -#link - -#visited link - -#alternate background - -#default - -#tooltip background - -#tooltip text - -#placeholder text - -#accent