From 6523ccd67a79ea9fce519461b6e9b75e366b0f65 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Mon, 31 Jul 2023 01:14:59 +0200 Subject: [PATCH] [Openbox module] title text and buttons handling improvements --- bin/colorizer-ob | 80 +++++++++++++++---- bin/obtctl | 13 +++ .../themes/obbuttons/big-14/close.xbm | 6 ++ .../themes/obbuttons/big-14/close_hover.xbm | 6 ++ .../themes/obbuttons/big-14/close_pressed.xbm | 6 ++ .../themes/obbuttons/big-14/desk.xbm | 6 ++ .../themes/obbuttons/big-14/desk_hover.xbm | 6 ++ .../themes/obbuttons/big-14/desk_pressed.xbm | 6 ++ .../themes/obbuttons/big-14/desk_toggled.xbm | 6 ++ .../obbuttons/big-14/desk_toggled_hover.xbm | 6 ++ .../obbuttons/big-14/desk_toggled_pressed.xbm | 6 ++ .../themes/obbuttons/big-14/iconify.xbm | 6 ++ .../themes/obbuttons/big-14/iconify_hover.xbm | 6 ++ .../obbuttons/big-14/iconify_pressed.xbm | 6 ++ .../themes/obbuttons/big-14/max.xbm | 6 ++ .../themes/obbuttons/big-14/max_hover.xbm | 6 ++ .../themes/obbuttons/big-14/max_toggled.xbm | 6 ++ .../obbuttons/big-14/max_toggled_hover.xbm | 6 ++ .../themes/obbuttons/big-14/shade.xbm | 6 ++ .../themes/obbuttons/big-14/shade_hover.xbm | 6 ++ .../themes/obbuttons/big-14/shade_pressed.xbm | 6 ++ .../themes/obbuttons/big-14/shade_toggled.xbm | 6 ++ .../obbuttons/big-14/shade_toggled_hover.xbm | 6 ++ 23 files changed, 204 insertions(+), 15 deletions(-) create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/close.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/close_hover.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/close_pressed.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/desk.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/desk_hover.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/desk_pressed.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_hover.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_pressed.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/iconify.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/iconify_hover.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/iconify_pressed.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/max.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/max_hover.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/max_toggled.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/max_toggled_hover.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/shade.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/shade_hover.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/shade_pressed.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled.xbm create mode 100644 share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled_hover.xbm diff --git a/bin/colorizer-ob b/bin/colorizer-ob index 1fff2f5..705257c 100755 --- a/bin/colorizer-ob +++ b/bin/colorizer-ob @@ -42,11 +42,14 @@ case "$LANG" in LIGHTBG="Jasne" DARKBG="Ciemne" TITLEBAR="Pasek tytułowy" + TITLEBAR_FONT="Czcionka" ACTIVE_BG="Tło aktywnego okna" INACTIVE_BG="Tło nieaktywnego okna" TITLEBAR_TEXT="Tekst paska tytułowego" FONT="Czcionka" - TEXTALIGN="Wyrównanie tekstu" + BOLD="Pogrubienie" + ITALIC="Kursywa" + TEXTALIGN="Wyrównanie tytułu" LEFT="do lewej" CENTER="po środku" RIGHT="do prawej" @@ -100,8 +103,11 @@ case "$LANG" in ACTIVE_BG="Active Background" INACTIVE_BG="Inactive Background" TITLEBAR_TEXT="Title Bar Text" + TITLEBAR_FONT="Title Bar Font" FONT="Font" - TEXTALIGN="Text align" + BOLD="Bold" + ITALIC="Italic" + TEXTALIGN="Title align" LEFT="left" CENTER="center" RIGHT="right" @@ -200,15 +206,27 @@ getvalues () { else AHANDLE="no" fi + + #from RC.xml + nspace="http://openbox.org/3.4/rc" + cfg="$HOME/.config/openbox/rc.xml" + + FSIZE=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:size' "$cfg") + FNAME=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:name' "$cfg") + NDSLIMC=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:titleLayout' "$cfg") + WEIGHT=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:weight' "$cfg") + SLANT=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:slant' "$cfg") + } getvalues out+=("^sep($OBTHEME_LBL: $OBTHEME)") out+=("^sep($TITLEBAR)") +out+=(" AbCd $TITLEBAR_TEXT,^checkout(titletext)") +out+=("    $BUTTONS,^checkout(tbuttons)") out+=(" $ACTIVE_BG,^pipe(mbclr '$ABG' obtctl clractivebg_only '${ACTIVE_BG}' '$me')") [[ ! -z "$ABGTO" ]] && out+=(" $ACTIVE_BG_TO,^pipe(mbclr '$ABGTO' obtctl clractivebgto '${ACTIVE_BG_TO}' '$me')") -out+=(" AbCd $TITLEBAR_TEXT,^checkout(titletext)") out+=("^sep()") out+=(" $INACTIVE_BG,^pipe(mbclr '$NBG' obtctl clrnormalbg_only '${INACTIVE_BG}' '$me')") @@ -218,7 +236,6 @@ out+=("^sep()") out+=("$PADDING [ $PHEIGHT $PWIDTH ],^checkout(padding)") out+=("\"\"\"$RAISED_OR_FLAT? [ $WINRAISED ]\"\"\",^checkout(raised)") out+=("^sep()") -out+=("$BUTTONS,^checkout(tbuttons)") out+=("^sep(Gradient)") out+=("$GRADIENT_TYPE [ ${REST##* } ],^checkout(gradient)") out+=(" $PRE_GRADIENTS,^pipe(mbgrad ob)") @@ -262,21 +279,54 @@ out2+=("Bold,obtctl buttons bold;$me") out2+=("Dots,obtctl buttons dots;$me") out2+=("^sep()") out2+=("Big 12px,obtctl buttons big-12;$me") +out2+=("Big 14px,obtctl buttons big-14;$me") +out2+=("^sep(TITLE_LAYOUT)") +[[ "$NDSLIMC" == NDSLIMC ]] && out2+=(" full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") || out2+=(" full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") +[[ "$NDSLIMC" == NLIMC ]] && out2+=(" mini NLIMC,obtctl ndslimc NLIMC;$me") || out2+=(" mini NLIMC,obtctl ndslimc NLIMC;$me") +[[ "$NDSLIMC" == LIMC ]] && out2+=(" mini (no icon) LIMC,obtctl ndslimc LIMC;$me") || out2+=(" mini (no icon) LIMC,obtctl ndslimc LIMC;$me") +[[ "$NDSLIMC" == CMIL ]] && out2+=(" crazy CMIL,obtctl ndslimc CMIL;$me") || out2+=(" crazy CMIL,obtctl ndslimc CMIL;$me") +out2+=("^sep(LEGEND)") +out2+=("^sep(N: Window icon)") +out2+=("^sep(L: Window label (Title))") +out2+=("^sep(I: Iconify (Minimize))") +out2+=("^sep(M: Maximize)") +out2+=("^sep(C: Close)") +out2+=("^sep(S: Shade (Roll up))") +out2+=("^sep(D: Omnipresent (On all desktops))") +out2+=("^sep($TEXTALIGN)") +[[ "$TXTJUST" = left ]] && out2+=("綠  $LEFT,obtctl textjustify left;$me")||out2+=("祿  $LEFT,obtctl textjustify left;$me") +[[ "$TXTJUST" = center ]] && out2+=("綠  $CENTER,obtctl textjustify center;$me")||out2+=("祿  $CENTER,obtctl textjustify center;$me") +[[ "$TXTJUST" = right ]] && out2+=("綠  $RIGHT,obtctl textjustify right;$me")||out2+=("祿  $RIGHT,obtctl textjustify right;$me") + #TEXT out2+=("^tag(titletext)") -out2+=("^sep($TITLEBAR_TEXT)") -out2+=("$FONT...,mb-setfont obtitle;$me") -out2+=("$TEXTALIGN [ $TXTJUST ],^checkout(talign)") -out2+=("$SHADOW,^checkout(shadow)") +out2+=("^sep(TEXT_COLOR)") +out2+=(" active title $ACTIVE_FG,^pipe(mbclr '$AFG' obtctl activetextcolor '${TEXT} ${ACTIVE_FG}' '$me')") +out2+=(" inactive title $INACTIVE_FG,^pipe(mbclr '$NFG' obtctl inactivetextcolor '${TEXT} ${INACTIVE_FG}' '$me')") +out2+=("^sep($TITLEBAR_FONT)") +out2+=("$FONT... [ ${FNAME} ${FSIZE} ],mb-setfont obtitle;$me") +out2+=("^sep(font family)") +fonts=("Noto Sans" "DejaVu Serif" "Roboto Light" "Inconsolata" "Ubuntu" "Source Code Pro") +for i in "${fonts[@]}" +do +[[ "$FNAME" == "$i" ]] && out2+=(" $i,$me") || out2+=(" $i,obtctl fontfamily \"${i}\";$me") +done out2+=("^sep()") -out2+=(" $ACTIVE_FG,^pipe(mbclr '$AFG' obtctl activetextcolor '${TEXT} ${ACTIVE_FG}' '$me')") -out2+=(" $INACTIVE_FG,^pipe(mbclr '$NFG' obtctl inactivetextcolor '${TEXT} ${INACTIVE_FG}' '$me')") -#TEXTALIGN -out2+=("^tag(talign)") +[[ "$WEIGHT" =~ .*"old" ]] && out2+=(" $BOLD,obtctl fontweight Normal;$me") || out2+=(" $BOLD,obtctl fontweight Bold;$me") +[[ "$SLANT" =~ .*"talic" ]] && out2+=(" $ITALIC,obtctl fontslant Normal;$me") || out2+=(" $ITALIC,obtctl fontslant Italic;$me") +out2+=("^sep(size)") +sizes=(8 9 10 11 12 13 14 15 16) +for i in "${sizes[@]}" +do +[[ "$FSIZE" == "$i" ]] && out2+=(" $i px,obtctl fontsize $i;$me") || out2+=(" $i px,obtctl fontsize $i;$me") +done +#SHADOW out2+=("^sep($TEXTALIGN)") -out2+=(" $LEFT,obtctl textjustify left;$me") -out2+=(" $CENTER,obtctl textjustify center;$me") -out2+=(" $RIGHT,obtctl textjustify right;$me") +[[ "$TXTJUST" = left ]] && out2+=("綠  $LEFT,obtctl textjustify left;$me")||out2+=("祿  $LEFT,obtctl textjustify left;$me") +[[ "$TXTJUST" = center ]] && out2+=("綠  $CENTER,obtctl textjustify center;$me")||out2+=("祿  $CENTER,obtctl textjustify center;$me") +[[ "$TXTJUST" = right ]] && out2+=("綠  $RIGHT,obtctl textjustify right;$me")||out2+=("祿  $RIGHT,obtctl textjustify right;$me") +out2+=("^sep()") +out2+=("$SHADOW,^checkout(shadow)") out2+=("^tag(shadow)") out2+=("^sep($SHADOW)") out2+=("$NOSHADOW,obtctl shadow 0;$me") diff --git a/bin/obtctl b/bin/obtctl index 221c857..5bc590a 100755 --- a/bin/obtctl +++ b/bin/obtctl @@ -356,11 +356,23 @@ buttons () { if [ "$SIZE" -lt "12" ]; then xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:size' -v "12" "$cfg" xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:size' -v "12" "$cfg" + fi + ;; + big-14) + nspace="http://openbox.org/3.4/rc" + cfg="$HOME/.config/openbox/rc.xml" + SIZE=$(xmlstarlet sel -N a="$nspace" -t -v '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:size' "$cfg") + if [ "$SIZE" -lt "14" ]; then + xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:size' -v "14" "$cfg" + xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:size' -v "14" "$cfg" fi ;; *) : ;; esac } +ndslimc() { + xmlstarlet ed -L -N o="http://openbox.org/3.4/rc" -u '/o:openbox_config/o:theme/o:titleLayout' -v "$1" "$HOME/.config/openbox/rc.xml" +} activebuttonscolors () { sd "^window.active.button.*.unpressed.image.color:.*$" "window.active.button.*.unpressed.image.color: ${1}" ${THEMERC} # Calculate colors for other button states (mix of ${1} and clractivebg @@ -581,6 +593,7 @@ case "$1" in activetextcolor) activetextcolor "$2";; inactivetextcolor) inactivetextcolor "$2";; buttons) buttons "$2";; + ndslimc) ndslimc "$2";; activebuttonscolors) activebuttonscolors "$2";; fontfamily) fontfamily "$2";; fontweight) fontweight "$2";; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/close.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/close.xbm new file mode 100644 index 0000000..2ee9538 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/close.xbm @@ -0,0 +1,6 @@ +#define close_width 14 +#define close_height 14 +static unsigned char close_bits[] = { + 0x00, 0x00, 0x0e, 0x1c, 0x1e, 0x1e, 0x3e, 0x1f, 0x7c, 0x0f, 0xf8, 0x06, + 0xf0, 0x01, 0xe0, 0x03, 0xd8, 0x07, 0xbc, 0x0f, 0x3e, 0x1f, 0x1e, 0x1e, + 0x0e, 0x1c, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/close_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/close_hover.xbm new file mode 100644 index 0000000..5205dfb --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/close_hover.xbm @@ -0,0 +1,6 @@ +#define close_hover_width 14 +#define close_hover_height 14 +static unsigned char close_hover_bits[] = { + 0x00, 0x00, 0x0e, 0x1c, 0x1e, 0x1e, 0x3e, 0x1f, 0x3c, 0x0f, 0x38, 0x07, + 0x00, 0x00, 0x00, 0x00, 0x38, 0x07, 0x3c, 0x0f, 0x3e, 0x1f, 0x1e, 0x1e, + 0x0e, 0x1c, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/close_pressed.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/close_pressed.xbm new file mode 100644 index 0000000..beb3279 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/close_pressed.xbm @@ -0,0 +1,6 @@ +#define close_pressed_width 14 +#define close_pressed_height 14 +static unsigned char close_pressed_bits[] = { + 0x00, 0x00, 0x0e, 0x1c, 0x0e, 0x1c, 0x0e, 0x1c, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x1c, 0x0e, 0x1c, + 0x0e, 0x1c, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/desk.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/desk.xbm new file mode 100644 index 0000000..c26973b --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/desk.xbm @@ -0,0 +1,6 @@ +#define desk_width 14 +#define desk_height 14 +static unsigned char desk_bits[] = { + 0x00, 0x00, 0x3e, 0x1f, 0x3e, 0x11, 0x3e, 0x11, 0x3e, 0x11, 0x3e, 0x1f, + 0x00, 0x00, 0x00, 0x00, 0x3e, 0x1f, 0x22, 0x11, 0x22, 0x11, 0x22, 0x11, + 0x3e, 0x1f, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/desk_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/desk_hover.xbm new file mode 100644 index 0000000..c096ce7 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/desk_hover.xbm @@ -0,0 +1,6 @@ +#define desk_hover_width 14 +#define desk_hover_height 14 +static unsigned char desk_hover_bits[] = { + 0x00, 0x00, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, + 0x00, 0x00, 0x00, 0x00, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, + 0x3e, 0x1f, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/desk_pressed.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/desk_pressed.xbm new file mode 100644 index 0000000..c7f4e8a --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/desk_pressed.xbm @@ -0,0 +1,6 @@ +#define desk_pressed_width 14 +#define desk_pressed_height 14 +static unsigned char desk_pressed_bits[] = { + 0x00, 0x00, 0x06, 0x18, 0x1e, 0x1e, 0x1c, 0x0e, 0x1c, 0x0e, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x0e, 0x1c, 0x0e, 0x1e, 0x1e, + 0x06, 0x18, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled.xbm new file mode 100644 index 0000000..34b548a --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled.xbm @@ -0,0 +1,6 @@ +#define desk_toggled_width 14 +#define desk_toggled_height 14 +static unsigned char desk_toggled_bits[] = { + 0x00, 0x00, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, + 0x00, 0x00, 0x00, 0x00, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, 0x3e, 0x1f, + 0x3e, 0x1f, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_hover.xbm new file mode 100644 index 0000000..49a7c97 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_hover.xbm @@ -0,0 +1,6 @@ +#define desk_toggled_hover_width 14 +#define desk_toggled_hover_height 14 +static unsigned char desk_toggled_hover_bits[] = { + 0x00, 0x00, 0x3e, 0x1f, 0x3e, 0x11, 0x3e, 0x11, 0x3e, 0x11, 0x3e, 0x1f, + 0x00, 0x00, 0x00, 0x00, 0x3e, 0x1f, 0x22, 0x11, 0x22, 0x11, 0x22, 0x11, + 0x3e, 0x1f, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_pressed.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_pressed.xbm new file mode 100644 index 0000000..da44179 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/desk_toggled_pressed.xbm @@ -0,0 +1,6 @@ +#define desk_toggled_pressed_width 14 +#define desk_toggled_pressed_height 14 +static unsigned char desk_toggled_pressed_bits[] = { + 0x00, 0x00, 0x06, 0x18, 0x1e, 0x1e, 0x1c, 0x0e, 0x1c, 0x0e, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x0e, 0x1c, 0x0e, 0x1e, 0x1e, + 0x06, 0x18, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/iconify.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/iconify.xbm new file mode 100644 index 0000000..6d4dd4a --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/iconify.xbm @@ -0,0 +1,6 @@ +#define iconify_width 14 +#define iconify_height 14 +static unsigned char iconify_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x1f, 0xfe, 0x1f, + 0xfe, 0x1f, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/iconify_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/iconify_hover.xbm new file mode 100644 index 0000000..5d50c23 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/iconify_hover.xbm @@ -0,0 +1,6 @@ +#define iconify_hover_width 14 +#define iconify_hover_height 14 +static unsigned char iconify_hover_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x07, + 0x00, 0x00, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/iconify_pressed.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/iconify_pressed.xbm new file mode 100644 index 0000000..ed5e2ca --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/iconify_pressed.xbm @@ -0,0 +1,6 @@ +#define iconify_pressed_width 14 +#define iconify_pressed_height 14 +static unsigned char iconify_pressed_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x3f, + 0xff, 0x3f, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/max.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/max.xbm new file mode 100644 index 0000000..23da464 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/max.xbm @@ -0,0 +1,6 @@ +#define max_width 14 +#define max_height 14 +static unsigned char max_bits[] = { + 0x00, 0x00, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0x02, 0x10, 0x02, 0x10, + 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, + 0xfe, 0x1f, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/max_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/max_hover.xbm new file mode 100644 index 0000000..0542438 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/max_hover.xbm @@ -0,0 +1,6 @@ +#define max_hover_width 14 +#define max_hover_height 14 +static unsigned char max_hover_bits[] = { + 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0x03, 0x30, 0x03, 0x30, + 0x03, 0x30, 0x03, 0x30, 0x03, 0x30, 0x03, 0x30, 0x03, 0x30, 0x03, 0x30, + 0xff, 0x3f, 0xff, 0x3f }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/max_toggled.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/max_toggled.xbm new file mode 100644 index 0000000..9c70245 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/max_toggled.xbm @@ -0,0 +1,6 @@ +#define max_toggled_width 14 +#define max_toggled_height 14 +static unsigned char max_toggled_bits[] = { + 0xe0, 0x3f, 0xe0, 0x3f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0xff, 0x21, + 0xff, 0x21, 0x01, 0x21, 0x01, 0x3f, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, + 0x01, 0x01, 0xff, 0x01 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/max_toggled_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/max_toggled_hover.xbm new file mode 100644 index 0000000..55243cd --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/max_toggled_hover.xbm @@ -0,0 +1,6 @@ +#define max_toggled_hover_width 14 +#define max_toggled_hover_height 14 +static unsigned char max_toggled_hover_bits[] = { + 0x00, 0x22, 0x00, 0x12, 0x00, 0x0a, 0x00, 0x06, 0x00, 0x3e, 0xff, 0x01, + 0xff, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, + 0x01, 0x01, 0xff, 0x01 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/shade.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/shade.xbm new file mode 100644 index 0000000..a49869f --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/shade.xbm @@ -0,0 +1,6 @@ +#define shade_width 14 +#define shade_height 14 +static unsigned char shade_bits[] = { + 0xc0, 0x00, 0xe0, 0x01, 0xf0, 0x03, 0xf8, 0x07, 0xfc, 0x0f, 0xfe, 0x1f, + 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, + 0x00, 0x00, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/shade_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/shade_hover.xbm new file mode 100644 index 0000000..83ed609 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/shade_hover.xbm @@ -0,0 +1,6 @@ +#define shade_hover_width 14 +#define shade_hover_height 14 +static unsigned char shade_hover_bits[] = { + 0x00, 0x00, 0xfe, 0x1f, 0xfe, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/shade_pressed.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/shade_pressed.xbm new file mode 100644 index 0000000..39e6989 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/shade_pressed.xbm @@ -0,0 +1,6 @@ +#define shade_pressed_width 14 +#define shade_pressed_height 14 +static unsigned char shade_pressed_bits[] = { + 0x00, 0x00, 0xff, 0x3f, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled.xbm new file mode 100644 index 0000000..cd638f0 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled.xbm @@ -0,0 +1,6 @@ +#define shade_toggled_width 14 +#define shade_toggled_height 14 +static unsigned char shade_toggled_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, + 0xc0, 0x00, 0xc0, 0x00, 0xfe, 0x1f, 0xfc, 0x0f, 0xf8, 0x07, 0xf0, 0x03, + 0xe0, 0x01, 0xc0, 0x00 }; diff --git a/share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled_hover.xbm b/share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled_hover.xbm new file mode 100644 index 0000000..59fd4a5 --- /dev/null +++ b/share/mabox-colorizer/themes/obbuttons/big-14/shade_toggled_hover.xbm @@ -0,0 +1,6 @@ +#define shade_toggled_hover_width 14 +#define shade_toggled_hover_height 14 +static unsigned char shade_toggled_hover_bits[] = { + 0x00, 0x00, 0xfe, 0x1f, 0xfe, 0x1f, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, + 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0x02, 0x10, 0xfe, 0x1f, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 };