Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 15 Jul 2019, 14:48
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Dragonfly theme for Gtk and IceWm
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Alienx


Joined: 06 May 2005
Posts: 141
Location: Rio de Janeiro - Brazil

PostPosted: Sat 01 Oct 2005, 17:20    Post subject:  Dragonfly theme for Gtk and IceWm  

I loved rarsa's Dragonfly theme for JWM !!!! Very Happy

http://www.murga.org/%7Epuppy/viewtopic.php?t=2406

so I prepared the same theme for IceWm and also a companion gtk theme for gtk1 and gtk2 and updated gtk-theme to show it on menu
icewm-gtk-dragonfly.jpg
 Description   
 Filesize   108.99 KB
 Viewed   3420 Time(s)

icewm-gtk-dragonfly.jpg


_________________
Sorry, broken english above Smile
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sat 01 Oct 2005, 18:36    Post subject:  

Very nice,

I like the colors and the simplicity. In IceWM I was using ElbergGreen theme to combine with the Dragonfly backdrop http://www.murga.org/%7Epuppy/viewtopic.php?t=1604&highlight=.

I had just finished updating the Dragonfly theme to also set the corresponding GTK theme and pinboard font color from ToughJourney's wizard. I was using the forest theme, but now I'll include yours if you don't mind.

I have a comment though. Your dotpup completelly replaces the gtk-theme script. Think about it this way: If you ever create another GTK theme, are you going to replace that file again and loose the theme you peviously added?

I suggest using sed to just insert the line you want.

I will repackage my jwm theme and there you can see the instructions to do it nicelly. i.e. Don't add it if it's already there and just add it to the existing script.

Meanwhile, I suggest adding a warning to your download post.

Thank you for the theme.
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sun 02 Oct 2005, 00:28    Post subject:  

Here is the code I added to my JWM Dragonfly theme dotpup to install your GTK dragonfly theme in a non destructive way.

It does the following:
- Checks if the theme is already there (with the grep)
- If it's not there then backs up the gtk-theme and executes an awk command that inserts the required lines in the gtk-theme script.

Of course, you still need to untar the gtkrc.dragonfly to /etc/gtk.

I also recommend taring and untaring specifying /etc instead of /root/.etc, as /root/.etc is just an implementation detail that should not be exposed in scripts.

Code:

# Add the GTK dragonfly theme to the gtk-theme script if it is not already there

grep "dragonfly" /usr/sbin/gtk-theme
if [ $? -ne 0 ] ; then
  cp /usr/sbin/gtk-theme /usr/sbin/gtk-theme.$$
  awk '{
    if (/\"default\" \"Default color theme\"/)
    {
      print $0;
      print " \"dragonfly\"   \"Dragonfly\" $STATUSDRAGONFLY  \\"
    }
    else
    {
      if (/STATUSDEFAULT=\"off\"/)
      {
        print $0;
        print "STATUSDRAGONFLY=\"off\" \nif [ \"$CURRENTTHEME\" = \"dragonfly\" ] ; then\n STATUSDRAGONFLY=\"on\"\nfi"
      }
      else
      {
        print $0
      }
    }
  } ' /usr/sbin/gtk-theme.$$  > /usr/sbin/gtk-theme
fi
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8907
Location: Perth, Western Australia

PostPosted: Sun 02 Oct 2005, 04:45    Post subject:  

that's really great that you guys are matching up gtk and window manager
themes!
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0340s ][ Queries: 12 (0.0058s) ][ GZIP on ]