Quick Links


KBFX - News

KBFX Team - Blogs

KBFX - World Press



Other projects

Sponsors

Thanks to all our sponsors for helping us keeping the site up:

 Вила "Кабасанов"

User Functions


Welcome to KBFX.NET Friday, October 31 2014 @ 10:57 AM EET

Create themes for KBFX 0.4.9.3

Theme HowTo for KBFX 0.4.9.3

Hi!
Since you found this page I'll think that you are interested in how to make own themes for KBFX 0.4.9.3. Well actually to make themes for KBFX 0.4.9.3 is very simple.

We have added a lot of new features to this version so they give you a full control over your menu as you wanted it. So let's get started.
Let's begin to look at this picture. Take a little while to see the descriptions of the different images because this will help you a lot when you are going to make your own themes.

This image is showing you all the images which are used in KBFX 0.4.9.3.
The most simple way to create a theme at this point is to take some of the images from the "default" theme and just change colors on some and see how that effects your menu.
DO NOT EVER CHANGE ANY IMAGE IN THE DEFAULT FOLDER.
The images there are used as fallback when there is a missing image in your own theme. We suggest rather to work with a copy folder of the default theme (the name of the folder containing your theme of course should be not "default" ;) ).

To make your life and ours as simple as possible we will just explain what different images do and how they work and of course their suggested sizes.
Let's jump to the description of the images.


NOTE:
  • The values for Width and Height are only our suggested values. You can use whatever values you feel are appropriate for your theme.
  • If ANY of these images are missing KBFX will use the image with the same name from the "default" theme .
  • In order to be used by the Configurator and by KBFX, every theme for versions > 0.4.9.3 MUST HAVE a file in it's folder named version-2


Images in KBFX 0.4.9.3

topbg.png
This is an image that is at the top of the menu.

Width = 504px    Height = 95px

dudebox.png
This is the background image where your personal image is displayed.

Width = 95px   Height = 88px

menu_top_image_person.png
This image is used for theme's default personal image.

Width = 48px   Height = 48px

find.png
This is a small image displayed in the search field.

Width = 22px   Height = 21px


rhstile.png
This is normal image displayed in categories.

Width = 132px   Height = 23px


rhshovertile.png
This is a hover image for categories.Used as hoverimage for rhstile.png

Width = 132px   Height = 23px


scrollnormal.png / scrollnormalbot.png
These images are used as top and bottom scrollbars.

Width = 240px   Height = 10px


separator.png / indexseparator.png
These are the separator images which separate your different subcategories.

Width = 240px   Height = 27px


tilenormal.png
This is the normal image where your applications are showed.

Width = 240px   Height = 46px


tilehover.png
This is the hover image where your applications are showed.

Width = 240px   Height = 46px

listboxbg.png
This is the background under the categories. It can be viewed on description on both
sides of the menu.

Width = 108px   Height = 23px

botbg.png
This is the background image at the bottom off the menu.

Width = 504px   Height = 38px

lock.png
This is the lock image.

Width = 84px   Height = 38px

lockhover.png
This is the lock hover image.

Width = 84px   Height = 38px

logout.png
This is the logout image.

Width = 84px   Height = 38px


logouthover.png
This is the logout hover image.

Width = 84px   Height = 38px

mask.png
This is deciding what size your menu will have when users install it and which will be the transparent parts of the menu (through the alpha mask of the png image).
Of course the size can be controlled later by the configuration of KBFX.

Width = 504px   Height = 513px

middleboxbg.png
The image is the background of the middle panel of the KBFX menu.


Width = 200px   Height = 270px

logo.png
The image is used as a theme's or author's logo shown in the Information box of the KBFX Configurator. You can put whatever image you want and it will be scaled to 100px width by 100px height.


Width = up to 100px   Height = up to 100px

preview.png
The image should be a snapshot of the working KBFX theme.
It is used in the configuration application in order the user to see what the theme will look like.

Width = 170px   Height = 205px

normal.png / hover.png / pressed.png
These are the KBFX Buttons for the kicker panel that are used in the theme.
Width and Height - as you like, but preferably Height not to be too much.

Theme's "kbfxfontrc" and "kbfxlayoutrc" files

Every theme MAY have two configuration files named:
kbfxfontrc - configures the fonts properties that the theme uses.
kbfxlayoutrc - configures the layout of the theme, the KBFX button and some other properties of the theme.
If one or both of these files don't exist, KBFX internal configuration options will be used for fonts and layout.
All the properties and values are separated between different Sections in the way showed below:

[Section]
property = value


When you want to prepare a theme, have in mind that every change that you make in the "KBFX Configurator" is kept in files in your home KDE directory.
Usually these files are here:
~/.kde/share/apps/kbfx/themerc
and are named:
THEMENAME_layoutrc
THEMENAME_fontrc
So if you want to ship your theme settings from the "KBFX Configurator", the best thing to do is to use the buttons: "EXPORT KBFXFONTRC FILE" ("Fonts" section of the Configurator) and "EXPORT KBFXLAYOUTRC FILE" ("Layout section" of the Configurator) and put the exported files in your theme folder.

NOTE:

  • Pay close attention to the case of the properties names because the configuration is CASESENSITIVE!
  • The order of the sections in the file is not important!
  • Have in mind that the Layout of the theme also depends on the sizes of the images!

File kbfxfontrc
It's best the colors to be represented in RGB format.
Font Properties should constrain to "QFont" class representation.
The values bellow are the default ones:
  [Fonts]
  TooltipText=0,0,0
  TooltipTextFont=Arial,8,-1,5,50,0,0,0,0,0
  ApplicationText=0,0,0
  ApplicationTextFont=Arial,8,-1,5,50,0,0,0,0,0
  CommentText=128,125,0
  CommentTextFont=Arial,8,-1,5,50,0,0,0,0,0
  GroupText=0,0,0
  GroupTextFont=Arial,8,-1,5,50,0,0,0,0,0
  UserName=255,255,255
  UserNameFont=Arial,10,-1,5,75,0,0,0,0,0
  SeparatorColor=0,0,0
  SeparatorFont=Arial,8,-1,5,50,0,0,0,0,0
  PluginColor=0,0,0
  PluginFont=Arial,8,-1,5,50,0,0,0,0,0
  LineColor=255,220,125
  # This is if the font when you hover on an item will be bold
  HoverBold = false


File kbfxlayoutrc
The values bellow are the default ones:
  [KbfxButton]
  # Time in msec for which the button
  # to fade in/out
  FadeTime=75
  # The three properties below describe the
  # paths to the theme's buttons.
  # KBFX uses the normal.png/hover.png/pressed.png
  # that are in the theme's folder by default.
  # So we recommend NOT to use the below three
  # properties!
  Normal = KBFX Normal Button Full Path
  Hover = KBFX Hover Button Full Path
  Press = KBFX Pressed Button Full Path

  [TopBar]
  # Face Position X
  DudeX=-1
  # Face Position Y
  DudeY=-1
  # Face Box Height
  FaceH=64
  # Face Box Width
  FaceW=65
  # Face Box Position X
  FaceX=27
  # Face Box Position Y
  FaceY=8
  # User Name Position X
  UserNameX=130
  # User Name Position Y
  UserNameY=32
  # Hide User Name
  DisableUserName=false
  # Top Bar Height
  Height=95
  # THE PROPERTIES BELOW ARE NOT USED FOR NOW
  # Top Bar Width
  Width=504
  # Top Bar Position X
  X=0
  # Top Bar Position Y
  Y=0

  [BottomBar]
  # Bottom Bar Height
  Height=38
  # THE PROPERTIES BELOW ARE NOT USED FOR NOW
  # Bottom Bar Width
  Width=504
  # Bottom Bar Position X
  X=0
  # Bottom Bar Position Y
  Y=428

  [Scrollbars]
  # THIS SECTION IS NOT USED FOR NOW
  # Bottom Scroll Bar Position X
  ScrollBarBotX=108
  # Bottom Scroll Bar Position Y
  ScrollBarBotY=95
  # Top Scroll Bar Position X
  ScrollBarTopX=108
  # Top Scroll Bar Position Y
  ScrollBarTopY=95

  [ListBox]
  # List Box Position X
  X=0
  # List Box Position Y
  Y=95
  # List Box Width
  Width=132
  # THE PROPERTIES BELOW ARE NOT USED FOR NOW
  # List Box Height
  Height=275

  [SearchBox]
  # Search Box Height
  Height=22
  # Search Box Width
  Width=240
  # Search Box Position X
  X=130
  # Search Box Position Y
  Y=48

  [ItemView]
  # Item Position X
  X=132
  # Item Position Y
  Y=95
  # Item Width
  Width=240
  # THE PROPERTIES BELOW ARE NOT USED FOR NOW
  # Item Height
  Height=275

  [ItemProperties]
  # Comment Margin in Item
  CommentMargin=66
  # Icon Size in Item
  IconSize=32
  # No Comments in Item
  NoComments=false

  [ToolBar]
  # THIS SECTION IS NOT USED FOR NOW
  # Tool Bar Button Normal Size
  ButtonNormalSize=48
  # Tool Bar Button Pressed Size
  ButtonPressedSize=48

  [MainMenu]
  # Main Menu Height
  UserMenuHeight=513
  # Main Menu Width
  UserMenuWidth=504
  # Contracted Menues
  ContractedMenu=false


Theme's "version-2" file

Every theme MUST HAVE a file named:
version-2 - designates to the KBFX Configurator and the KBFX itself that this theme is with the new format and gives the user more information about the theme.
This file is obligatory to exist, though it can be empty.
It is used to designate that the theme is in the new format and the properties that are in the file are used in the KBFX Configurator for showing the user some info about the theme.
The values in this file cannot be overwritten by the KBFX Configurator.
If existing, the file should contain information about the theme's version, author's name, author's email and a homepage for the theme.
The unspecified fields are replaced with the string - Not Specified.
The values bellow are self explanatory and are just an example:

  [ThemeGeneral]
  ThemeVersion=0.51
  AuthorName=Nookie
  AuthorEmail=nookie@no_spam.org
  Homepage=http://www.kbfx.net


That's all !
Now we wish you all good luck when creating themes.
We are looking forward to all your good looking themes out there for the KBFX!
Best Regards

THE KBFX TEAM - If you have any questions join us at irc.freenode.org at #kbfx

Last Updated: Sunday, October 19 2008 @ 10:23 PM EEST|Hits: 7,350 View Printable Version


Who's Online

Guest Users: 1

What's New

Stories

No new stories

Comments last 7 days

No new comments

Trackbacks last 7 days

No new trackback comments

Poll

Should the KBFX Project go on with the development?

Should the KBFX Project go on with the development?

  •  Yes, you should go on.
  •  No, you better stop developing and we want the Raptor in KDE4

Results
Other polls | 323 voters | 5 comments
Is the Documentation of KBFX enough?

Is the Documentation of KBFX enough?

  •  Yes
  •  No
  •  Needs more docs inside the running application
  •  Needs more docs on the homepage
  •  Needs more docs about installation
  •  Needs more docs about theming

Results
Other polls | 144 voters | 0 comments
What distro is your KBFX installed on?

What distro is your KBFX installed on?

  •  Debian
  •  SuSe
  •  Mandriva
  •  Fedora
  •  Ubuntu/Kubuntu
  •  Gentoo
  •  Slackware
  •  *BSD
  •  Other...

Results
Other polls | 1,907 voters | 0 comments