A little beauty for the timebar

Moderator: Forum moderators

Post Reply
User avatar
Sofiya
Posts: 1803
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1202 times
Been thanked: 1075 times

A little beauty for the timebar

Post by Sofiya »

Vanilla Dpup 9.2.x

timebar color changes depending on installed theme - works with gtkdialog-(gtk3).
path to the script /usr/local/jwm_config/time
part of the code:

Code: Select all

#set extended gtk-theme
if [ "$GTKDIALOG_BUILD" = 'GTK3' ] ; then #gtk3
	echo '*textview#JWM_Calendar {
	
	 font-family: monospace;
	 font-size: 11pt;
	 font-weight: bold;
         background-color: rgba(255, 255, 255, 0);   
}
textview#JWM_Calendar text {
	 background-color: rgba(17, 17, 17, 0.95);  
	 color: rgba(222, 233, 222, 1);      
	 border: 1px outset rgba(249, 196, 114, 5);   
	 border-radius: 1% 16%;           
}
window {
	border-radius: 12px;   
	border: 4px double;    
	box-shadow: 0px 0px 0px 14px rgba(255, 255, 255, 0.5);  
	
/* uncomment so that the background color does not change when changing themes */		
	-background-color: rgba(255, 255, 255, 1);  
	-color: rgba(15,15,15,1);	  							
}' > $WORKDIR/gtkrc_mono.css
else
	echo 'style "mono" {
	font_name="Mono bold 12"
	base[NORMAL]="#111"
	text[NORMAL]="#B4CAB6" }
widget "*JWM_Calendar" style "mono"' > $WORKDIR/gtkrc_mono
	export GTK2_RC_FILES=$WORKDIR/gtkrc_mono:/root/.gtkrc-2.0
fi
Attachments
scrot_2022-10-09-49_1366x768.jpg
scrot_2022-10-09-49_1366x768.jpg (97.77 KiB) Viewed 1018 times
Last edited by Sofiya on Fri Oct 20, 2023 8:46 pm, edited 4 times in total.

Vanilla Dpup 9.2.X - KLV-Airedale - KLA-OT2
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 1803
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1202 times
Been thanked: 1075 times

Re: A little beauty for the timebar

Post by Sofiya »

Vanilla Dpup 9.2.x

Second version with minor changes.
now the background color of the calendar will also change depending on the installed theme
path to the script /usr/local/jwm_config/time
part of the code:

Code: Select all

#set extended gtk-theme
if [ "$GTKDIALOG_BUILD" = 'GTK3' ] ; then #gtk3
	echo '*textview#JWM_Calendar {
	
	 font-family: monospace;
	 font-size: 11pt;
	 font-weight: bold;
         background-color: rgba(255, 255, 255, 0);       
}
textview#JWM_Calendar text {
	 border: 1px outset;	 
	 border-radius: 1% 16%;
	 -border-color:  rgba(249, 196, 114, 5);          
}
window {
	border-radius: 12px;   
	border: 4px double;    
	box-shadow: 0px 0px 0px 14px rgba(255, 255, 255, 0.5); 
	
/* uncomment so that the background color does not change when changing themes */		
	-background-color: rgba(255, 255, 255, 1);  
	-color: rgba(15,15,15,0.95);	  							
}' > $WORKDIR/gtkrc_mono.css
else
	echo 'style "mono" {
	font_name="Mono bold 12"
	base[NORMAL]="#111"
	text[NORMAL]="#B4CAB6" }
widget "*JWM_Calendar" style "mono"' > $WORKDIR/gtkrc_mono
	export GTK2_RC_FILES=$WORKDIR/gtkrc_mono:/root/.gtkrc-2.0
fi
Attachments
scrot_2022-10-09-43_1366x768.jpg
scrot_2022-10-09-43_1366x768.jpg (163.64 KiB) Viewed 935 times

Vanilla Dpup 9.2.X - KLV-Airedale - KLA-OT2
PUPPY LINUX Simple fast free

Post Reply

Return to “Desktop”