From b1dd48e5796c2ad14bb11a2af77302d1665c46cb Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 4 Jun 2022 22:50:37 +0200 Subject: [PATCH] obtheme module and help --- bin/colorizer-ob | 9 +++ bin/obtctl | 8 ++- share/mabox-colorizer/help/en.html | 79 ++++++++++++++++++---- share/mabox-colorizer/help/img/bold.png | Bin 0 -> 199 bytes share/mabox-colorizer/help/img/dots.png | Bin 0 -> 144 bytes share/mabox-colorizer/help/img/normal.png | Bin 0 -> 167 bytes share/mabox-colorizer/help/img/tiny.png | Bin 0 -> 185 bytes 7 files changed, 80 insertions(+), 16 deletions(-) create mode 100644 share/mabox-colorizer/help/img/bold.png create mode 100644 share/mabox-colorizer/help/img/dots.png create mode 100644 share/mabox-colorizer/help/img/normal.png create mode 100644 share/mabox-colorizer/help/img/tiny.png diff --git a/bin/colorizer-ob b/bin/colorizer-ob index 9b7e469..a1f5bb4 100755 --- a/bin/colorizer-ob +++ b/bin/colorizer-ob @@ -74,6 +74,8 @@ out+=(" AbCd TITLEBA out+=("PADDING [ $PHEIGHT $PWIDTH ],^checkout(padding)") out+=("Raised or flat? [ $WINRAISED ],^checkout(raised)") +out+=("^sep()") +out+=("Titlebar Buttons,^checkout(tbuttons)") out+=("^sep(Gradient)") out+=("Gradient type [ ${REST##* } ],^checkout(gradient)") [[ ! -z "$ABGTO" ]] && out+=(" ACTIVE_BG_TO,^pipe(mbclr '$ABGTO' obtctl clractivebgto ACTIVE_BG_TO '$me')") @@ -98,6 +100,13 @@ fi # out2+=("$i,obtctl theme $i;$me") # fi #done +#TBUTTONS +out2+=("^tag(tbuttons)") +out2+=("^sep(Titlebar Buttons)") +out2+=("Tiny,obtctl buttons tiny;$me") +out2+=("Normal,obtctl buttons normal;$me") +out2+=("Bold,obtctl buttons bold;$me") +out2+=("Dots,obtctl buttons dots;$me") #TEXT out2+=("^tag(titletext)") out2+=("^sep(TITLE_BAR TEXT)") diff --git a/bin/obtctl b/bin/obtctl index fa77736..417ee00 100755 --- a/bin/obtctl +++ b/bin/obtctl @@ -3,6 +3,7 @@ OBTHEME=$(awk '// {while (getline n) {if (match(n, //)) {l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$HOME/.config/openbox/rc.xml") #echo "$OBTHEME" +THEMEDIR="$HOME/.themes/$OBTHEME/openbox-3" THEMERC="$HOME/.themes/$OBTHEME/openbox-3/themerc" if [ ! -f "${THEMERC}.bak" ]; then @@ -197,7 +198,11 @@ inactivetextcolor () { sd "\.inactive.label.text.color:.*$" ".inactive.label.text.color: ${1}" ${THEMERC} openbox --reconfigure } - +buttons () { + rm $THEMEDIR/*.xbm + cp -a /usr/share/mabox-colorizer/themes/obbuttons/${1}/*.xbm $THEMEDIR/ + openbox --reconfigure +} case "$1" in theme) theme "$2";; @@ -221,5 +226,6 @@ case "$1" in clrnormalbgto) clrnormalbgto "$2";; activetextcolor) activetextcolor "$2";; inactivetextcolor) inactivetextcolor "$2";; + buttons) buttons "$2";; *) : ;; esac diff --git a/share/mabox-colorizer/help/en.html b/share/mabox-colorizer/help/en.html index ca60782..f0a337b 100644 --- a/share/mabox-colorizer/help/en.html +++ b/share/mabox-colorizer/help/en.html @@ -1,6 +1,6 @@ -W3.CSS +Mabox Colorizer @@ -17,15 +17,15 @@ -
+
-
- Launch Colorizer -
+
+ +

Mabox Colorizer

a tool to easily customize your Mabox Linux Desktop

- + Launch Colorizer
@@ -34,16 +34,64 @@

Openbox theme

The Openbox module allows you to easily customize the appearance of window decorations.

-

You can change the colors and size of: -

  • title bar
  • border / line
+

You can change some basic settings directly from this screen. For much more options, fine-tunning and colors choices launch OBtheme module.

+ +

Active window titlebar color

+
+

You can change active window titlebar color by clicking circles below.

+

+   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +

+

-

Gradients

-Openbox title bar can use various types of gradients... +
+

Buttons

+

Click icons below to change buttons

+ + + + + + + + + + + + + +
TinyNormalBoldDots
+
+

Gradients

+

Openbox title bar can use various types of gradients...

- + @@ -77,10 +125,9 @@ Openbox title bar can use various types of gradients... -
Gradient typeImage (click to see in action)Image (click to apply)
Solid color (no gradient)Pyramid
- -

Raised or flat?

- + + + @@ -90,6 +137,8 @@ Openbox title bar can use various types of gradients...
Raised or flat?
Raised
+
+