WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: FLTK themes  (Read 14868 times)

Offline Ingrid

  • Newbie
  • *
  • Posts: 7
FLTK themes
« on: November 18, 2010, 09:27:21 AM »
Hi everybody!

I'm a long time forum lurker and Tiny Core Linux lover. It's by far my favorite Linux distro.

Right now I'm trying to make a TCL remake for my friends and family who are far less tech savvy than me. This group of users generally care a lot about the look and feel of the OS they run. For this reason I either have to remove the FLTK apps from the mix or I have to skin them.

The past few days I've spent searching these forums, the FLTK website and the web in general for info about how to make FLTK themes. I've found very little info this far. I know it uses a GTK like theming system, but I don't know specifically what that means. I know there are currently three themes available; default, GTK like and plastic. But that's about it. I guess there are very few people interested in this topic compared to KDE, GTK and Windows theming, but that just makes this even more interesting.  ;)

My question then is this; can somebody here provide me with any info on how to do this, or at least point me in the direction of some useful info? I'm at a complete loss on where to look.

-Ingrid

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11047
Re: FLTK themes
« Reply #1 on: November 18, 2010, 09:29:15 AM »
AFAIK every one of those three themes is hard-coded to the fltk source.
The only barriers that can stop you are the ones you create yourself.

Offline Ingrid

  • Newbie
  • *
  • Posts: 7
Re: FLTK themes
« Reply #2 on: November 18, 2010, 09:41:04 AM »
That would certainly explain a lot. Is it enough to have to have a look at the fltk source code or do I have to theme every single fltk app?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11047
Re: FLTK themes
« Reply #3 on: November 18, 2010, 10:04:27 AM »
If you really want to do that, you'd code a fourth theme, build your version of fltk, and remaster with that instead of the fltk we ship.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: FLTK themes
« Reply #4 on: November 18, 2010, 10:10:34 AM »
in ~/.Xdefaults either of following lines would do:
Code: [Select]
fltk*scheme:plastic
fltk*scheme:gtk+
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: FLTK themes
« Reply #5 on: November 18, 2010, 08:31:55 PM »
Inspired by this thread I started to toy around, attached a screenie resulting of the following entries in ~/.Xdefaults:

Code: [Select]
fltk*scheme:plastic                                                             
fltk*background:brown                                                           
Text.background:green                                                           
fltk*foreground:blue
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Ingrid

  • Newbie
  • *
  • Posts: 7
Re: FLTK themes
« Reply #6 on: November 19, 2010, 03:38:07 AM »
@curaga Thank you, that's very helpful! I'll look into it eventually, but it's currently over my skill level. I'll get there though, just not until quite yet.

@Tinypoodle Thanks for the screenshot, that illustrates what it's possible to do with FLTK out of the box. Do you have a complete list of the FLTK objects it's possible to manipulate in ~/.Xdefaults? Or maybe a link to one?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: FLTK themes
« Reply #7 on: November 19, 2010, 06:04:42 AM »
@Tinypoodle Thanks for the screenshot, that illustrates what it's possible to do with FLTK out of the box. Do you have a complete list of the FLTK objects it's possible to manipulate in ~/.Xdefaults? Or maybe a link to one?

Unfortunately not. I would be interested in such myself.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Ingrid

  • Newbie
  • *
  • Posts: 7
Re: FLTK themes
« Reply #8 on: November 19, 2010, 07:20:46 AM »
Now that I've gotten some more info I managed to get some more interesting results from Google.

There is a fourth theme available for FLTK that looks rather nice in my opinion. It's called Gleam and can be found at http://www.xentalion.com/projects/fltk_gleam/ I haven't tested it yet, but I will. The source code for this should also provide a simple way to get into coding custom themes. Oh, the joy! :)

The full list for FLTK colors in ~/.Xdefaults is:
Code: [Select]
fltk*scheme:themename
fltk*background:somecolor
Text.background:somecolor
fltk*foreground:somecolor
fltk*selectBackground:somecolor

I haven't found any info on how to change FLTK font-faces though, so any info regarding this would be appreciated.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: FLTK themes
« Reply #9 on: November 19, 2010, 05:25:58 PM »
The full list for FLTK colors in ~/.Xdefaults is:
Code: [Select]
fltk*scheme:themename
fltk*background:somecolor
Text.background:somecolor
fltk*foreground:somecolor
fltk*selectBackground:somecolor

Those are the same I was able to find.
I omitted mentioning the last option, as during toying around I couldn't find any visible impact produced by it.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)