Changing border color of window  [Solved]

Message
Author
User avatar
SpongeBOB
Posts: 86
Joined: Mon Apr 26, 2021 4:57 am

Changing border color of window

#1 Post by SpongeBOB »

Hi everyone,

How can we change the border color of the window ? (here blue)
Image
MX-21


Thanks
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

Huckleberry Finn

Re: Changing border color of window

#2 Post by Huckleberry Finn »

You need to play with css files. First take a copy of the original one (even the directory) :

/usr/share/themes/mx-comfort-dark/gtk-3.0/dist/gtk-dark.css

(also /usr/share/themes/mx-comfort-dark/gtk-3.0/dist/gtk.css )

search for this (color code) :

Code: Select all

0f56d9
Probably this line (#89) is the related one:

Code: Select all

@define-color wm_border_focused #0f56d9;
____________________

You can do this: Copy the whole directory and rename, change the name to yours (say: to Bob or MX-Sponge :D) in

/usr/share/themes/mx-comfort-dark/index.theme

and play with it, do all experiments there. It'll appear with that name in settings :)


You can also (even better) first create a .themes directory in home, than put/create "your" theme there, and make all experiments freely :)

User avatar
SpongeBOB
Posts: 86
Joined: Mon Apr 26, 2021 4:57 am

Re: Changing border color of window

#3 Post by SpongeBOB »

Thank you @Huckleberry Finn
I have made the changes but unfortunately it's not working
LS -d mx-com* of /usr/share/themes wrote: drwxr-xr-x 11 root root 4.0K Oct 18 23:48 mx-comfort
drwxr-xr-x 10 root root 4.0K Oct 18 23:48 mx-comfort-dark
drwxr-xr-x 10 root root 4.0K Dec 10 13:44 mx-comfort-dark-BOB
drwxr-xr-x 3 root root 4.0K Oct 18 23:48 mx-comfort-dark-thick-border
drwxr-xr-x 3 root root 4.0K Oct 18 23:48 mx-comfort-thick-border
index.theme of dark-bob wrote: [Desktop Entry]
Type=X-GNOME-Metatheme
Name=mx-comfort-dark-BOB
Comment=
Encoding=UTF-8

[X-GNOME-Metatheme]
Name=mx-comfort-dark-BOB
GtkTheme=mx-comfort-dark-BOB
IconTheme=mx-comfort-dark
MetacityTheme=mx-comfort-dark-BOB
And I changed the color of the css variable wm_border_focused in
/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0/gtk.css
/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0/gtk-dark.css

Code: Select all

89	@define-color wm_border_focused #fff000;
But the border still remain blue.. any ideas ?

Bob
Last edited by SpongeBOB on Sat Dec 11, 2021 2:12 am, edited 1 time in total.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

Huckleberry Finn

Re: Changing border color of window

#4 Post by Huckleberry Finn »

After saving changes just select another theme from Appearance, then re-select that (to take effect).

If still not: Same lines (same files) in the original (non-dark) folder:

/usr/share/themes/mx-comfort/gtk-3.0/dist/...

Huckleberry Finn

Re: Changing border color of window

#5 Post by Huckleberry Finn »

SpongeBOB wrote: Fri Dec 10, 2021 8:12 am
And I changed the color of the css variable wm_border_focused in
/usr/share/themes/mx-comfort-dark-CS/gtk-3.0/gtk.css
/usr/share/themes/mx-comfort-dark-CS/gtk-3.0/gtk-dark.css

...

But the border still remain blue.. any ideas ?

Bob
:confused:

/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0/dist/gtk.css

User avatar
dolphin_oracle
Developer
Posts: 22797
Joined: Sun Dec 16, 2007 12:17 pm

Re: Changing border color of window  [Solved]

#6 Post by dolphin_oracle »

you can't *just* change those files anyway. the standard mx-comfort files are compiled to reduce memory consumption. so you need to update the resource files after modifying the css.

I *think* this i the command

Code: Select all

glib-compile-resources gtk.resource.xml
executed from the gtk3.0 folder of the theme.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
SpongeBOB
Posts: 86
Joined: Mon Apr 26, 2021 4:57 am

Re: Changing border color of window

#7 Post by SpongeBOB »

Huckleberry Finn wrote: Fri Dec 10, 2021 10:27 am
SpongeBOB wrote: Fri Dec 10, 2021 8:12 am /usr/share/themes/mx-comfort-dark-CS/gtk-3.0/gtk.css
/usr/share/themes/mx-comfort-dark-CS/gtk-3.0/gtk-dark.css
:confused:
/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0/dist/gtk.css
@Huckleberry Finn sorry it was from another test, but the directory is indeed mx-comfort-dark-BOB
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
SpongeBOB
Posts: 86
Joined: Mon Apr 26, 2021 4:57 am

Re: Changing border color of window

#8 Post by SpongeBOB »

dolphin_oracle wrote: Fri Dec 10, 2021 10:30 am ...
I *think* this i the command

Code: Select all

glib-compile-resources gtk.resource.xml
executed from the gtk3.0 folder of the theme.
Thank you @dolphin_oracle .

Unfortunately I got a problem when I try to dw the libglib2 ->
CLI wrote: root@MX21b:/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0# glib-compile-resources gtk.gresource.xml
Command 'glib-compile-resources' not found, but can be installed with:
apt install libglib2.0-dev-bin

root@MX21b:/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0# apt install libglib2.0-dev-bin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libglib2.0-dev-bin
E: Couldn't find any package by glob 'libglib2.0-dev-bin'



Moderator: color removed, please stick to regular color fonts, thank you.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

Huckleberry Finn

Re: Changing border color of window

#9 Post by Huckleberry Finn »

Just btw: you know this one is a bad habit: root@MX21

:)

User avatar
dolphin_oracle
Developer
Posts: 22797
Joined: Sun Dec 16, 2007 12:17 pm

Re: Changing border color of window

#10 Post by dolphin_oracle »

SpongeBOB wrote: Sat Dec 11, 2021 2:38 am
dolphin_oracle wrote: Fri Dec 10, 2021 10:30 am ...
I *think* this i the command

Code: Select all

glib-compile-resources gtk.resource.xml
executed from the gtk3.0 folder of the theme.
Thank you @dolphin_oracle .

Unfortunately I got a problem when I try to dw the libglib2 ->
CLI wrote: root@MX21b:/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0# glib-compile-resources gtk.gresource.xml
Command 'glib-compile-resources' not found, but can be installed with:
apt install libglib2.0-dev-bin

root@MX21b:/usr/share/themes/mx-comfort-dark-BOB/gtk-3.0# apt install libglib2.0-dev-bin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libglib2.0-dev-bin
E: Couldn't find any package by glob 'libglib2.0-dev-bin'



Moderator: color removed, please stick to regular color fonts, thank you.
welp it tells you how to fix it.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

Post Reply

Return to “XFCE Desktop Environment”