GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Aug 30, 2014 6:12 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Making "slick" interfaces with GTK+
PostPosted: Fri Oct 07, 2011 8:29 am 
Offline
Familiar Face

Joined: Thu Aug 18, 2011 8:26 am
Posts: 16
I am reaching a point in the development of my project where I would like to start improving the look and feel of the interface... this is because I am nearing the testing phase.

I would like to know if there is a way to make my applications look pretty as opposed to the standard GTK look?

I have read a little about themes as well, is it possible to maybe have a pretty theme for the widgets in my application, without changing the user's theme in gnome?

I realise this might be a dumb question, but whilst I am an experienced C++ programmer, I have very little experience with developing user interfaces, the products we produce at work don't usually incorporate an interface.

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Making "slick" interfaces with GTK+
PostPosted: Fri Oct 07, 2011 8:41 am 
Offline
GTK+ Geek

Joined: Sat Sep 03, 2011 6:36 pm
Posts: 94
You may be a little restricted to the standard GTK+ ubuntu theme look,but if you are worrying about running it in windows/mac/solaris they can still use the GUI of the OSs above.
The only thing i can think of is by using a custom GTK+ theme in your apps here is a collection that i found http://www.webhostingsearch.com/article ... themes.php


Top
 Profile  
 
 Post subject: Re: Making "slick" interfaces with GTK+
PostPosted: Fri Oct 07, 2011 8:59 am 
Offline
Familiar Face

Joined: Thu Aug 18, 2011 8:26 am
Posts: 16
and can I use these custom themes, without changing the theme on the users machine?


Top
 Profile  
 
 Post subject: Re: Making "slick" interfaces with GTK+
PostPosted: Fri Oct 07, 2011 9:22 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 745
Location: UK
Hi,

I would avoid changing the theme just for YOUR application just to make it look pretty, unless it is essential. The user may have picked a theme due to a visual impairment such as colour blindness or a lack of vision and has picked a theme to help make the display look OK for them. And themes are a very personal thing.

There are many other ways to make your application look pretty. The first is to experiment with the placement of your widgets and see what looks best (try it with different themes if you can). If you are using Glade to create your user interface that would make experimenting very easy. The next and probably the hardest way is to have custom widgets that follow the users theme. This way you will have full control over what your widget looks like and how it behaves

If you need to change the style of your widgets have a look at GtkStyle (GTK 2.0) or GtkStyleContext (GTK 3.0). This way you can control the various options for a widget, without having to change everything.

Have fun making your application looking good.

E.

_________________
E.


Top
 Profile  
 
 Post subject: Re: Making "slick" interfaces with GTK+
PostPosted: Fri Dec 23, 2011 8:02 am 
Offline
GTK+ Guru

Joined: Fri Mar 25, 2011 5:16 pm
Posts: 177
Location: USA
It's not C++, it's in C code but I posted some examples and references for using CSS with GTK3 in the section: "Gtk+ Tutorials & Resources"

http://www.gtkforums.com/viewtopic.php?f=3&t=988&p=72088&hilit=GTK3+with+CSS#p72088


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group