New backup 2025-11-10 11:17:52

This commit is contained in:
Penelope Gwen 2025-11-10 11:17:52 -08:00
parent 39928cc193
commit ca343aa839

View file

@ -1,81 +1,134 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if ! which pastel;then
printf "pastel is not installed\n"
exit 1
fi
source ./active/colors.sh 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(){ 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' \ 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(){ 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' \ # 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 \ qt_conf_line \
"active_colors" \ "active_colors" \
"#ff${de_color_13}" `#window text` \ ${active_colors[@]}
"#64${de_color_0}" `#button background` \ # "#ff${de_color_13}" `#window text` \
"#64${de_color_15}" `#bright` \ # "#64${de_color_0}" `#button background` \
"#64${de_color_7}" `#less bright` \ # "#64${de_color_15}" `#bright` \
"#64${de_color_8}" `#dark` \ # "#64${de_color_7}" `#less bright` \
"#64${de_color_7}" `#less dark` \ # "#64${de_color_8}" `#dark` \
"#ff${de_color_15}" `#normal text` \ # "#64${de_color_7}" `#less dark` \
"#ff${de_color_15}" `#bright text` \ # "#ff${de_color_15}" `#normal text` \
"#ff${de_color_15}" `#button text` \ # "#ff${de_color_15}" `#bright text` \
"#64${de_color_13}" `#normal background` \ # "#ff${de_color_15}" `#button text` \
"#64${de_color_13}" `#window` \ # "#64${de_color_13}" `#normal background` \
"#64${de_color_15}" `#shadow` \ # "#64${de_color_13}" `#window` \
"#64${de_color_5}" `#highlight` \ # "#64${de_color_15}" `#shadow` \
"#ff${de_color_1}" `#highlighted text` \ # "#64${de_color_5}" `#highlight` \
"#ff${de_color_5}" `#link` \ # "#ff${de_color_1}" `#highlighted text` \
"#ff${de_color_9}" `#visited link` \ # "#ff${de_color_5}" `#link` \
"#19${de_color_8}" `#alternate background` \ # "#ff${de_color_9}" `#visited link` \
"#ff${de_color_15}" `#default` \ # "#19${de_color_8}" `#alternate background` \
"#64${de_color_0}" `#tooltip background` \ # "#ff${de_color_15}" `#default` \
"#ff${de_color_15}" `#tooltip text` \ # "#64${de_color_0}" `#tooltip background` \
"#80${de_color_15}" `#placeholder text` \ # "#ff${de_color_15}" `#tooltip text` \
"#e1${de_color_13}" `#accent` # "#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 create_qt_conf
#window text #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