Update qtcurve to latest upstream version

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-style-qtcurve@1182805 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 70f7d26b3b
commit b23b8edce7

@ -0,0 +1 @@
Craig Drummond <craig.p.drummond@gmail.com>

@ -6,24 +6,53 @@ set(CPACK_GENERATOR "DEB;RPM;TGZ")
set(DEBIAN_PACKAGE_DESCRIPTION "QtCurve for Qt3/KDE3")
set(DEBIAN_PACKAGE_SECTION "kde")
set(CPACK_SOURCE_GENERATOR "TBZ2")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "55")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "6")
set(CPACK_PACKAGE_VERSION_PATCH "2")
set(CPACK_PACKAGE_CONTACT "Craig Drummond <Craig.Drummond@lycos.co.uk>")
set(CPACK_PACKAGE_CONTACT "Craig Drummond <craig.p.drummond@gmail.com>")
set(QTCURVE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
set(QTCURVE_VERSION_FULL "${QTCURVE_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${QTCURVE_VERSION_FULL}")
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${QTCURVE_VERSION_FULL}")
include(CPack)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
find_package(KDE3 REQUIRED)
if (QTC_BUILD_CONFIG_MODULE)
if (NOT QTC_QT_ONLY)
find_package(KDE3)
if (NOT KDE3_FOUND)
set(QTC_QT_ONLY true)
message("INFO: KDE3 not found! Compiling for Qt only! (Not building the config module)")
endif (NOT KDE3_FOUND)
endif (NOT QTC_QT_ONLY)
else (QTC_BUILD_CONFIG_MODULE)
set(QTC_QT_ONLY true)
endif (QTC_BUILD_CONFIG_MODULE)
if (NOT QTC_QT_ONLY)
include(KDE3Macros)
else (NOT QTC_QT_ONLY)
set(QT_MT_REQUIRED TRUE)
find_package(Qt3 REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
include(QtCurveQt3)
if (QT_PLUGINS_DIR MATCHES NOTFOUND)
message(SEND_ERROR "ERROR: Failed to detemine Qt3 plugins folder. Please pass -DQT_PLUGINS_DIR=<folder> to cmake")
endif (QT_PLUGINS_DIR MATCHES NOTFOUND)
endif (NOT QTC_QT_ONLY)
if (NOT QTC_QT_ONLY)
exec_program(kde-config
ARGS --prefix
ARGS --prefix --expandvars
OUTPUT_VARIABLE CMAKE_INSTALL_PREFIX)
endif (NOT QTC_QT_ONLY)
exec_program(kde-config
ARGS --install locale --expandvars
OUTPUT_VARIABLE KDE3_LOCALE_PREFIX)
file(TO_CMAKE_PATH "$ENV{KDEDIRS}" _KDEDIRS)
@ -47,11 +76,42 @@ if(NOT KDE4PREFIX)
endif(NOT KDE4PREFIX)
configure_file (config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
if (NOT QTC_QT_ONLY)
add_definitions(${QT_DEFINITIONS} ${KDE3_DEFINITIONS})
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDES})
else (NOT QTC_QT_ONLY)
add_definitions(${QT_DEFINITIONS})
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
endif (NOT QTC_QT_ONLY)
set(DATA_INSTALL_DIR ${KDE3PREFIX}/share/apps)
if(QTC_DEFAULT_TO_KDE3)
message("INFO: Defaulting to reading KDE3 settings if KDE_SESSION_VERSION is not set")
else(QTC_DEFAULT_TO_KDE3)
message("INFO: Defaulting to reading KDE4 settings if KDE_SESSION_VERSION is not set")
endif(QTC_DEFAULT_TO_KDE3)
add_subdirectory(style)
if (NOT QTC_QT_ONLY)
if (QTC_BUILD_CONFIG_MODULE)
message("**************************************************************\n"
"Warning: The KDE3 config module is deprecated, and is no longer\n"
" actively maintained. This module NO LONGER COMPILES!\n"
" It is recommended to use the KDE4 version instead.\n"
"**************************************************************\n")
add_subdirectory(config)
add_subdirectory(po)
endif (QTC_BUILD_CONFIG_MODULE)
add_subdirectory(themes)
add_subdirectory(colors)
endif (NOT QTC_QT_ONLY)
if (QTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT)
message("**************************************************************\n"
"Warning: You have enabled support for the 'fix parentless dialogs'\n"
" option. This is known to BREAK some applications. Please\n"
" DO NOT report errors to application authors when you have\n"
" this enabled. Please reconsider DISABLING this option.\n"
"**************************************************************\n")
endif (QTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT)

@ -2,7 +2,7 @@
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@ -305,7 +305,7 @@ the "copyright" line and a pointer to where the full notice is found.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.

@ -1,3 +1,589 @@
1.6.2
-----
1. Disable the support for 'fix parent-less dialog' option - this causes too many
issues with applications to be worth the fuss. If you really want this enabled,
use the -DQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT=true cmake option.
1.6.1
-----
1. Use same radius for all corners of progressbar.
1.6.0
-----
1. Add 'glow' focus option - this is now the default.
2. Fix potential crash in rgbToHsv
3. Enable glow/shadow/etch for square and slight round settings.
4. Draw coloured mouse over for 'checked' toggle buttons.
5. Use Highlight colour for default button glow.
6. Default sub-menu popup delay to 225 - matches Gtk2 standard default.
7. Fix glow-mouse over for radio buttons.
1.5.0
-----
1. Add option to set progressbar colour.
2. Add options to have squared sliders and/or scrollbar sliders even when
general setting set to round.
1.4.1
-----
1. Fix config dialog compilation.
1.4.0
-----
1. Add striped window and menu background options.
2. Added options to not square frames and tab frames.
3. Add option to drag windows by menubar.
4. Blend menubar and window titlebar gradients if:
menubar, titlebar, and inactive titlebar gradients match AND
not blending titlebar gradient AND
using window titlebar colour for menubar AND
extending window drag into menubar
5. Default titlebar colours to window colours - matches KDE4 default.
6. Fix drawing of scrollbar background.
1.3.1
-----
1. Fix compilation of config module. Please note that this module is deprecated,
and might be out-of sync with the maintained KDE4 version.
2. Fix compile when style support is enabled.
1.3.0
-----
1. Add option to use kwin titlebar colours as menubar shade.
2. Fix(?) compilation of config module.
3. Dont use KStandardDirs to create config folder.
4. Use 'kde' to disable parent-less dialog fix for all KDE applications.
1.2.0
-----
1. Draw etch effect on radios if using a button effect, and not using button-like
check/radios.
2. If drawing square non-gtk style scrollviews, use a dark/light borders.
3. If drawing square scrollviews, set frame width to 1 if using thin scrollbar
groove.
4. Add options to draw square progress and entry fields when rounding.
5. Add option to control whether progressbars have a border on all sides, or just
top/bottom.
6. Add option to colour default buttons using highlight colour.
7. Expand selected check/radio colour option so as to be able to specify colour.
8. Allow to draw focus highlight for square scrollviews.
1.1.1
-----
1. #include config.h before using QTC_QT_ONLY
1.1.0
-----
1. Add option to not embolden progressbar text.
2. Add option to allow coloured mouse over for toolbar buttons.
3. Config module is deprecated, and no longer updated - use KDE4 config module
to change settings. If KDE3 version is required, pass -DQTC_BUILD_CONFIG_MODULE=true
to cmake.
1.0.1
-----
1. Apply cygwin patches from Yaakov S - use MODULE istead of SHARED.
1.0.0
-----
1. Added option to colour selected check/radios.
2. Added option to use a smaller dot for radios.
3. Made check/radio and splitter highlight options a configurable % - i.e.
not based on standard hightlight %
4. When highlighting check/radio/splitter background, use the selection gradient.
5. Added new splitter/handle/thumb style: single dot.
6. Default check/radio/splitter/expander highlight set to 3%
7. Don't do coloured mouse over for buttons of editable combos, spin buttons,
or scrollbar buttons.
8. Don't do regular coloured mouse over of sliders when these are set to be
coloured on mouse over.
9. Allow to specify strength when colouring selected tab.
10. Remove support for QtCurve styles (these appear as unique KDE styles in the
main KDE style selection dialog). Re-enable support by passing
-DQTC_STYLE_SUPPORT=true to cmake.
11. Slightly lighter shade used for coloured mouse over of arrows.
12. Add option to specify appearance of dock-widget titlebars.
13. When saving settings to $XDG_CONFIG_HOME/qtcurve/stylerc, remove the older
$XDG_CONFIG_HOME/qtcurvestylerc, and $XDG_CONFIG_HOME/qtcurve.gtk-icons if they
exist.
14. Use split gradient for dock-widget titlebars.
15. Reduce number of supplied presets.
16. Allow to compile style against just Qt3 - tarball includes a simplified copy
of KStyle. Need to pass -DQTC_QT_ONLY=true to cmake. NOTE: May also need to set QTDIR
*before* calling cmake.
17. If KDE3 development files not found, then automatically set -DQTC_QT_ONLY=true
0.69.1
------
1. Remove line beneath dock widget titles.
0.69.0
------
1. Add option to control whether bottom tabs should have their gradient
shades inverted.
2. Config files now stored under $XDG_CONFIG_HOME/qtcurve (e.g. ~/.config/qtcurve)
3. Fix some issue with 'flat' appearance.
4. Fix shaded listview headers sometime being uninitialised.
0.68.1
------
1. Fix reading, and saving, of 'dark inverted gradient' setting.
0.68.0
------
1. New options:
Control whether icons are displayed in menus
Force alternate colours in listviews
0.67.3
------
1. Fix saving of menubar item 'colour on mouse over' setting.
2. Offset sunken slider thumbs to improve appearance.
0.67.2
------
1. Only do mouse over for entries if combos and spin widgets are unified.
2. If not etching/shadowing, when mouse over set to 'glow' use 'thick coloured'
3. If not etching/shadowing, decrease thinner scrollbar groove.
4. Fix shaded button on combos when not etching/shadowing.
5. Remove hard-coding of light border in progressbars - use gradient setting.
0.67.1
------
1. Disable combobox mouse over for OpenOffice.
0.67.0
------
1. Add option to draw insider border of inactive tabs.
2. Add option to colour the sorted listview header.
3. Disable spin button when at min/max - matches Gtk2.
4. Disable scrollbar buttons when at min/max - to match spin buttons.
5. Place non-V arrows of unified spin widgets closer together.
6. Fix shadows on radio buttons.
0.66.0
------
1. Add a new 'Dark Inverted Gradient' and use this as the default gradient
for menu stripes.
2. New 'Agua' style gradient - looks better under KDE4 and Gtk2.
3. Add option to lighten/darken the background of tabs.
4. Make inactive tabs more consistent with active tabs.
5. Remove sunken scroll views config item, and replace with option to control
if entries and scroll views should be etched (sunken).
6. Modify defaults:
Scrollbars outside of scrollview (Gtk/oxygen style)
Thin scrollbar groove.
7. Use KDE_SESSION_VERSION to determine which KDE prefix (KDE3, or KDE4) to
seach first for qtc_xxx.themerc files.
8. Update Klearlooks to be more consistent with Clearlooks (lighten tab background,
use highlight strip on active tab, dont colour active tab)
9. Use default KDE4 settings to determine colour of text for disabled items.
10. When calling kde-config/kde4-config pipe stderr to /dev/null
0.65.4
------
1. Use 'MS Windows' and not 'Windows' for scrollbar type - to aid
translations.
2. Fix installation location of translation files.
0.65.3
------
1. When not using button-like check/radio boxes, use view text as the
indicator colour.
2. Fix slight tab glitches when using glow tab mouse over and square
tabs.
3. Fix usage of custom menu text colours.
4. Fix custom menu stripe colour.
5. In config dialog - for gradient directions, use "Top to bottom" instead of
"Horizontal" and "Left to right" instead of "Vertical"
6. Add support for translations of config dialogs.
Turkish translation by Necmettin Begiter
0.65.2
------
1. Add option to draw list view lines in pre 0.65 style.
0.65.1
------
1. Use a border width of 1 if gradienting popupmenus.
2. When using darkened menu stripe use popupmenu background colour as the
base colour.
3. Fix gradient menus when not using lighter popup menu backgrounds.
4. Dont fill background of PE_PanelLineEdit
5. When readining kicker's settings, and window colours, use the correct KDE home.
6. Fix blank menus in Amarok when using gradient menu background.
0.65.0
------
1. Add options to draw editable combos, and spin widgets, as edit fields with
embedded arrows - oxygen style.
2. Add option to draw a light border around tab widgets, as opposed to 3d look.
3. Added ability to specify scrollbar width (11 -> 31, default 15)
4. Base slider dimensions off of scrollbar width, unless using triangular slider.
5. Add option to have thinner buttons.
6. Add option to specify gradient for background of popupmenus.
7. Enable mouse-over for entry fields.
8. For mouse-over and focus, use same colour for top and bottom inner parts
of entry fields.
9. When using full focus with coloured mouse over, then mouse over takes
precedence.
10. Alter default settings:
Place arrows of spin buttons, and editable combos, in the edit field.
Draw a light border around tab widget.
Thinner buttons.
Use soft gradient for active tab.
Use glow style highlight for tab mouse-over (this introduces gaps between tabs).
11. Modified how button, and combo, heights are calculated - no longer set a
minimum height.
12. Fix some re-draw errors with thin scrollbar grooves.
13. Default to reading KDE4 settings if KDE_SESSION_VERSION is not set.
Pass -DQTC_DEFAULT_TO_KDE3=true to cmake to force this to default to KDE3.
14. Call kde-config / kde4-config to ascertain users KDEHOME.
15. Fix slight redraw error with glow style mouse over tabs.
16. Remove box from listview arrows when configured to drawn listview lines.
0.64.2
------
1. When using shaded combo buttons, use button colours for border.
0.64.1
------
1. When using shaded combo buttons, use the combo splitter setting to
determine if there should be a border between the shaded and unshaded parts.
2. Fix background of some QTextEdits.
0.64.0
------
1. Add option to not draw border around popupmenus.
2. Add option to unify spinbuttons.
3. Add option to set sub-menu delay (default 100ms)
4. Use equal top/bottom padding on popupmenu separators.
5. Add option to colour arrow part of combobox.
6. Draw resize grip as a darkend triangle.
7. Add a 'thick coloured border' mouse over type.
8. Allow to darken sliders.
9. Add new default button indicator - darken.
10. Fix mispainted spin widget entry field.
11. Fix reading of KDE4 palette.
12. Fix setting of check/radio shade.
13. Fix storing of custom menu stripe colour.
14. In config dialog, place '%'symbol on the right for the "popup menu background"
setting.
15. Fix kaffeine's slider benig completely filled at start of song.
16. Fix LineEdit in qtconfig.
17. Under KDE4 (KDE_SESSION_VERSION>=4), default hover/focus colours to the
KDE4 defaults.
0.63.0
------
1. Add '3dfull' to gradient border options. This forces the
dark, as well as the light, portion to be drawn.
2. Use a lighter shade for the dark portion of gradient border.
3. Flat dot for radio buttons.
4. Option to use button colour for listview headers.
5. Use KDE4 colours for focus and mouse-over.
6. Removal of background focus option.
7. Softer colouration of selected tab.
8. Tab mouse over options; top (as before), below, or glow.
9. Modified defaults:
Tab mouse-over highlight drawn at the bottom
Plain slider style
Align titlebars text in center
10. Add appearance setting for background of flat scrollbar buttons.
11. Add HCY colour space.
12. Use tint and mix colour routines from KDE4's KColourUtils.
13. Remove QtCurve's 'inactiveHighlight' option, and use KDE4s setting
instead.
14. Add option to specify appearance setting of filler part of sliders.
15. Increase number of custom gradients - now matches number of gradient
config items.
16. When using glow style mouse over, use mouse over colour for arrows.
17. Option to use a thinner groove for scrollbars (only when using flat, or no, buttons).
18. Option to only colour sliders on mouse over.
19. Option to round all tabs.
20. Add option to specify menu stripe colour.
21. Update gradient preview when change colour space.
22. Remove 'Custom sunken gradient' setting, as this was not
actually used.
23. Better handling of 'full centered' titlebar texts when
window size is small.
24. Fix scrolbar sliders appearing rounded when round=none, sliders
are shaded, and flat scrollbar buttons.
25. Fix faded menuitems when not rounding.
26. Make popup menu titles more KDE4-like.
27. Fix use of base colour in disabled listviews. (Fixes bug introduced in 0.62.0)
0.62.7
------
1. Show 'extra' as the default round setting in the config UI, as this is
actually the default. Note, that KDE3 does not support this and will use
'full' instead.
0.62.6
------
1. Allow ability to specify if titlebar center alignment is for the full window
width, or just the text area.
0.62.5
------
1. Use gradient for filled slider - unless appearance is flat/raised.
2. Remove menubar item size adjust code when toolbar borders are set - not
needed for KDE3, as it has padding anyway.
3. Don't highlight slider groove on mouse-over.
4. Fix coloured bottom tabs.
5. Fix faded menuitems when not lightening popupmenus.
0.62.4
------
1. When drawing filled slider groove, use fill colour for border as well.
2. Better positioning of V arrows on secondary scrollbar buttons.
0.62.3
------
1. Fix misdrawing of filled slider groove when slider is at 0.
2. Use correct appearance setting for slider groove.
3. Fix potentional palette issues if Qt3 and KDE3 have difference palettes.
4. Override QStyle::drawItem to remove etched disabled text, as opposed to
just setting GUIStyle styleHint. This fixes the 'click on menubaritem' to
close menu issue.
5. When menubars have a border, adjust the menubar items accordingly.
6. When filling the used part of a slider groove, use the slider colour
if set, otherwise use the highlight colour.
0.62.2
------
1. Fix crash when coloured mouse over is set to none, and focus is set to full.
2. Make focus full like KDE4/Gtk2
3. Fix some issues gradient issues (tabs and menuitems).
0.62.1
------
1. Use highlight colour for unselected focused view items.
2. Fix saving/reading of custom shades.
3. Fix striped progress.
4. Fix background of disabled spin widgets.
0.62.0
------
1. Reduce gradient code complexity - makes predefined gradients
work in the same vein as custom gradients.
2. Add scrollbar/slider groove and 'sunken' appearance options.
3. Added new soft and harsh gradients.
4. Change defaults:
Soft gradient
Fade menuitems
Don't use highlight for menu.
Default highlight set to 3%
Toolbar separators set to sunken
Flat menubar appearance
Button like check/radios
Supply, and use, predefined custom shades
Plain progress
Don't highlight active tab
Sunken scrollviews
Sunken appearance set to soft
Line focus
Set custom appearances for titlebars
5. Allow all bar flat and raised tabs to bol coloured.
6. Only save appearance settings if different from default.
7. If a gradient does not define the values for positions 0 and 100, then add these.
8. Better colouring of selected tab.
9. Added new focus options - full and line.
10. Add new round options - extra and max.
11. Don't etch disabled items.
12. Use text colour for focus indicator in tree/list/etc views.
13. When specifying custom gradients, add the pssibility to have no
internal border - options are now none, light, 3d
14. Only apply plastik style mouse-over scrollbars and sliders when
plastik is set as the mouse-over style.
15. Add option to specify titlebar text alignment.
16. When setting palette, also set link and link visited colours.
0.61.4
------
1. Fix gradient of faded menuitems when not using lighter background.
2. Disable usage of group box lines - has too many issues.
0.61.3
------
1. Fix settings for sliderThumbs, handles, toolbarSeparators, and splitters.
2. Disable 'group box line' for ksysguard.
0.61.2
------
1. Fix setting of options if no qtcurvestylerc is found!
2. Fix border of tabs.
0.61.1
------
1. Fix setting of default style. Fixes odd behaviour of config dialog!
2. Fix position of dark part of sunken lines.
3. Improve KDE dock widget titles.
4. Read in custom gradients and shades from any system config file.
0.61
----
1. Only draw coloured border for moused-over items if they are enabled!
2. Add option to draw line after frameless groupbox title.
3. Dont darken background of dock widget titlebars, just draw a line underneath.
4. Add 'none' to toolbar handles and splitters style.
5. Change defaults:
Button effect: Shadow
Mouse over: Glow
Default button indicator: Glow
V arrows
Flat toolbars
Use highlight colour for focus
Flat scrollbar buttons
No combo line
Sunken toolbar handles
Only lighten popupmenus by 2%
Flat active tab
Don't shade sliders
Don't darken menubars
Use darkened background for progressbars
6. Allow to darken popup menu background.
0.60
----
1. Add more safety checks for destruction of hover widgets.
2. New focus rect options - standard, highlight, background.
3. Add the ability to specify popup menu light factor.
4. Add option to use darkened background colour for menuitem selection.
5. Add 'fade' to menuitem appearance.
6. Option to have flat scrollbar buttons.
7. New slider styles - plain rotated, and round rotated.
8. Increase size of busy progressbar.
9. Draw border around filled progress.
10. Option to have button-like checks/radios.
11. Use base for light part of lineedit border, and background for scrollview.
12. Nicer 'V' arrows.
13. Add option to specify appearance of inactive titlebars.
14. Round internal corners of plain coloured mouse over effect.
15. Remove reading of Qt3 palette - this 'hack' only worked for pure Qt apps.
0.59.5
------
1. In config dialog, rename the 'Fill' progressbar option to 'No border',
and place it on the 'Bar' line.
0.59.4
------
1. Left align dock widget titles - more KDE4 like. (Right align for RTL)
2. Dont activate menubar when Alt key is pressed alone - matches Gtk.
0.59.3
------
1. Fix background drawng of sliders on toolbars (such as in Kaffeine), when
coloured mouse over is disabled and highlight factor is set to 1.0.
0.59.2
------
1. Also check in share/kde4/apps/kstyle/themes for qtc_*.themerc files.
0.59.1
------
1. Fix appearance of shiny glass defult buttons.
2. Give glass default buttons a light border.
0.59
----
1. When drawing gray focus rect, draw only slightly rounded.
2. Etch/shadow effect now applied to widget sides as well as
top/bottom.
3. Add etching to checks, radios, slider grooves, and progressbars.
4. Option to have progress fill groove - default to true.
5. Option to display non-editable combo splitter - defaults to true.
6. Dont do coloured mouse over for mdi buttons, dock widget buttons,
or toolbar buttons.
7. Better coloured mouse over for checks and radios.
8. Don't use background colour for non-coloured mouse over of
check/radios if highlighting text backgroud.
9. When colouring menubars, correctly draw menubar text colour
of inactive windows.
10. Fix potential crash when using pixmap cache.
11. Fix tab coloured mouse-over when not rounded.
12. Implement size grip.
13. New mouse over effect - glow. Only applicable if etching or shadowing.
14. New default button indicator - glow. Only applicable if etching
or shadowing.
15. Allow up to 10 custom defined gradients.
16. Allow custom shades to be specified.
17. Add option to specify active tab appearance.
18. Don't do coloured mouse-overs for sunken buttons.
19. Apply 'border menuitems' only to popup menus.
20. If lightening popup menus, and not bordering menuitems, then remove 1
pix border arund popup menus.
21. Change default to not border menuitems.
22. Re-arrange config GUI.
23. Remove some frames from kate.
24. Scrolview options: allow sunken, highlight, and square.
25. Option to specify progressbar groove appearance.
0.58
----
1. Add a config option for menu stripe appearance - defaults to gradient.
2. Add a config option for selection appearance - defaults to flat. KDE4 (Qt4.4) & Gtk2 only.
3. Use background colour for disabled scrollbar buttons.
4. Remove some frames from systemsettings.
5. Don't draw menu separators through stripe.
6. Draw menu stripe on the right for RTL languages.
7. Supply a QtCurve colours file.
8. Lighter menustripe when not lightening menus.
9. Lighter menu separators.
0.57.1
------
1. Fix for frameless groupboxes krusader's config dialog.
2. Draw QDockWindowResize handles like QSplitters.
3. Make dock windows more KDE4 like.
4. Don't draw frames around kicker buttons.
5. Fix kicker menu stripe.
0.57
----
1. Modify defaults:
Turn off shade menubar only of active window
Set default button indicator to tint
2. Re-added option to highlight background of check/radio text on mouseover.
0.56.3
------
1. Don't set sliders to flat just because appearance is flat.
0.56.2
------
1. Use case-insesitive string compares when checking Qt and KDE config files.
2. Fix for (sometimes) ever-boldening frameless groupbox titles.
3. Don't colour non-maxed sliders of disabled scrollviews.
0.56.1
------
1. Fix crash when using corner default button indicator and no coloured
mouse over.
0.56
----
1. Change default settings:
Dont animate progressbars
Frameless groupboxes
Gradient KDE4 window titlebars
2. Correctly position corner indicator.
3. Use mouse over colours for corner indicator.
4. Add option to control window titlebar appearance - default to
gradient.
5. Read in KWin's pallete, and use to colour MDI windows.
6. Draw own icons for titlebar buttons - more KDE4 like.
7. Option to tint the default button colour.
8. Option to draw a stripe on the left hand side of popupmenus.
9. Only mark default button if it is enabled.
0.55.3
------
1. Style "Ideal::Button"s on "Ideal::ButtonBar"s as per KMultiTabBar tabs.
(Makes KTorrent's tab buttons look like Kate's sidebar buttons)
2. Read KDE4's contrast setting if running under KDE4.
0.55.2
------
1. Add ability to import qtc_*.themerc settings into config dialog.
@ -23,7 +609,7 @@
6. Optional diagonal progressbar sripes.
7. Use alternating dark/light for dashed toolbar handles.
8. New 'split' style gradient.
9. Option to specift slider style: plain, round (only when appearance=round),
9. Option to specify slider style: plain, round (only when appearance=round),
and triangular (plastik-ish)
10. Modify default style: flat splitter lines, flat slider thumbs, no
toolbar separators, triangular slider, diagonal progressbar stripes.
@ -113,7 +699,7 @@
light colour schemes.
9. Dont draw sunken panel around checked menuitems.
10. Fix karm (and others?) statusbar icon.
11. Fix for radio buttons in apps where QApplication::NormalColor!=QApplication::colorSpec()
11. Fix for radio buttons in apps where QApplication::NormalColour!=QApplication::colourSpec()
(e.g. designer)
0.50
@ -221,7 +807,7 @@
follows general appearance.
Tab appearance - set from general appearace.
Draw dock window titles - never.
Colored sidebar buttons - always.
Coloured sidebar buttons - always.
3. Changed appearance of check/radios - now filled with base
colour.
4. Etch look for button, combos, line edits, and spin boxes.
@ -294,7 +880,7 @@
0.45
----
1. Option to control whether highlighted items should use
the highlight color in inactive windows.
the highlight colour in inactive windows.
2. Option to control whether menubars should be shaded in
inactive windows.
3. Fix loading / selection of options.
@ -334,7 +920,7 @@
next, or none.
9. Slightly better radios in khtml.
10. Slightly smaller buttons.
11. Option to have colored side-bar buttons - e.g. the buttons on the
11. Option to have coloured side-bar buttons - e.g. the buttons on the
edge of kate's windows.
12. Improvement to Opera's MDI buttons in menubar area. Not
perfect, but better.
@ -343,7 +929,7 @@
0.43.2
------
1. Fix the config dialog to notice changes in menu text color settings.
1. Fix the config dialog to notice changes in menu text colour settings.
2. Dont draw menubar text twice!
0.43.1
@ -359,7 +945,7 @@
5. Really fix KDE 3.5.5 taskbar flicker...
6. Slight improvement to combobox when right-to-left
7. Seperate specification of scollbar slider, and range slider, settings.
8. Option to specify menubar text colors.
8. Option to specify menubar text colours.
9. New 'flat' appearance.
10. Options to use a coloured border for mouse-over.
11. Nicer looking check and radio buttons - using pixmaps.
@ -508,7 +1094,7 @@
7. KDE: Use dots also for general handles - more consistent.
8. KDE: Theme dock window handles - i.e. no more text.
9. KDE: Fix/hack look of MDI window buttons.
10. GTK2: Hackish fix for firefox and KDE's "apply colors to non-KDE apps"
10. GTK2: Hackish fix for firefox and KDE's "apply colours to non-KDE apps"
setting.
11. GTK: Fix for tear of menu background.
@ -569,7 +1155,7 @@
6. ALL: New gradient style: bevelled - gradient top/bot, and plain in the
middle. Affects listview headers, buttons, and combos.
7. ALL: Allow setting of listview appearance.
8. ALL: Allow setting of listview header color - background, button, or
8. ALL: Allow setting of listview header colour - background, button, or
custom.
9. ALL: Option to only round top of selected menubar items.
10. ALL: New toolbar handle style: dashes
@ -605,8 +1191,8 @@
wont happen in Gtk2 apps until they are restarted.
4. GTK: Dont draw dividers in listview headers, unless header is >10 pixels
5. ALL: Gradient non-selected tabs as well as selected.
6. GTK2: Also look in "hicolor" for icons. Search order will be:
<chosen theme>, crystalsvg, hicolor
6. GTK2: Also look in "hicolour" for icons. Search order will be:
<chosen theme>, crystalsvg, hicolour
7. GTK2: Map gt-add and gtk-remove stock icons
0.30
@ -691,7 +1277,7 @@
11. ALL: Fix for tab-bar highlight when using light selection colours.
12. KDE: Fix for non-bordered gradient radio buttons.
13. GTK: More KDE like menu sizing.
14. KDE: Fix/hack for OO.o2.x menubars. If the selected menu color is toodark,
14. KDE: Fix/hack for OO.o2.x menubars. If the selected menu colour is toodark,
then lighten. This is required as OO.o always draws the menu text
dark! It seems to have a check for plastik style though, and then
it draws selected popup menu items white.

@ -8,6 +8,27 @@ To build and install:
4. make
5. make install
The following options may be supplied to cmake:
-DQTC_QT_ONLY=true
Build style as a pure Qt3 style. NOTE: May also need to set QTDIR *before*
calling cmake.
This is the default as from QtCurve 1.0.0
-DQTC_BUILD_CONFIG_MODULE=true
Build KDE3 config module. NOTE: This is no longer maintained.
-DQTC_DEFAULT_TO_KDE3=true
If the KDE_SESSION_VERSION is not set, then assume we are running
under KDE3. If this cmake option is not set, then KDE4 is assumed.
-DQTC_STYLE_SUPPORT=true
Support QtCurve style files. These are stored as
<kde prefix>/share/apps/kstyle/themes/qtc_<stylename>.themerc
-DQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT=true
Enable support for the 'fixParentlessDialogs' config option. NOTE: This is
known to break some applications - hence is disabled by default!
Themes
------
@ -36,10 +57,20 @@ or copy to <kde install prefix>/share/apps/kstyle/themes/ (usually
When KDE's style panel is restarted, your new theme should appear in the list.
NOTE: As of QtCurve 1.0.0 style support has been disabled by default, and you will
need to explicitly enable it via QTC_STYLE_SUPPORT
Testing
-------
As of v1.2.1, QtCurve can be forced to read its settings from an alternate config
file via the QTCURVE_CONFIG_FILE environment variable. This is only really useful
for testing alternate config settings without changing the users current settings.
Usage:
QTCURVE_CONFIG_FILE=~/testfile kcalc
Creating Distribution Packages
------------------------------
CMake (as of v2.4.x) does not support building rpm or deb packages, and a simple
checkinstall will not work. CMake 2.6 should support rpm and deb packages, but until
then I have supplied a simple shell script to build a package with checkinstall.
@ -52,7 +83,6 @@ To use this:
pixmaps.h
---------
To regenerate this, run the following:
qembed radio_frame.png radio_light.png radio_on.png check_on.png slider.png slider_light.png slider_v.png slider_light_v.png check_x_on.png > pixmaps.h
qembed radio_frame.png radio_inner.png radio_light.png radio_on.png radio_on_small.png check_on.png slider.png slider_light.png check_x_on.png dot.png > pixmaps.h

@ -0,0 +1,27 @@
FILE(GLOB GLOB_PATHS_BIN /usr/lib/qt-3*/bin/)
FIND_PATH(QT_PLUGINS_DIR imageformats
$ENV{QTDIR}/plugins
${GLOB_PATHS_BIN}
/usr/local/qt/plugins
/usr/lib/qt/plugins
/usr/lib/qt3/plugins
/usr/share/qt3/plugins
)
MACRO(QTCURVE_QT_WRAP_CPP outfiles )
# get include dirs
GET_DIRECTORY_PROPERTY(moc_includes_tmp INCLUDE_DIRECTORIES)
SET(moc_includes)
FOREACH(it ${ARGN})
GET_FILENAME_COMPONENT(outfilename ${it} NAME_WE)
GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/${outfilename}.moc)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_MOC_EXECUTABLE}
ARGS -o ${outfile} ${infile}
DEPENDS ${infile})
SET(${outfiles} ${${outfiles}} ${outfile})
ENDFOREACH(it)
ENDMACRO(QTCURVE_QT_WRAP_CPP)

@ -0,0 +1 @@
install(FILES QtCurve.kcsrc DESTINATION ${DATA_INSTALL_DIR}/kdisplay/color-schemes)

@ -0,0 +1,27 @@
[Color Scheme]
Name=QtCurve
activeBackground=169,195,228
activeBlend=169,195,228
activeForeground=255,255,255
activeTitleBtnBg=220,220,220
alternateBackground=240,240,240
background=239,236,231
buttonBackground=239,236,231
buttonForeground=0,0,0
contrast=7
foreground=0,0,0
frame=238,238,230
handle=238,238,230
inactiveBackground=244,244,244
inactiveBlend=244,244,244
inactiveForeground=20,19,18
inactiveFrame=238,238,230
inactiveHandle=238,238,230
inactiveTitleBtnBg=220,220,220
linkColor=0,0,192
selectBackground=69,126,224
selectForeground=255,255,255
shadeSortColumn=true
visitedLinkColor=128,0,128
windowBackground=224,232,238
windowForeground=0,0,0

@ -0,0 +1,305 @@
/*
This file is taken from kcolorspaces.cpp and kcolorutils.cpp from kdelibs
The code has been modified to work with QColor (Qt3 &Qt4) and GdkColor
*/
/* This file is part of the KDE project
* Copyright (C) 2007 Matthew Woehlke <mw_triad@users.sourceforge.net>
* Copyright (C) 2007 Olaf Schmidt <ojschmidt@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include <math.h>
#ifdef __cplusplus
#if defined QT_VERSION && (QT_VERSION >= 0x040000)
#define FLOAT_COLOR(VAL, COL) (VAL).COL##F()
#define TO_COLOR(R, G, B) QColor::fromRgbF(R, G, B)
#else
#define FLOAT_COLOR(VAL, COL) ((double)(((VAL).COL()*1.0)/255.0))
#define TO_COLOR(R, G, B) QColor(limit(R*255.0), limit(G*255.0), limit(B*255.0))
#endif
#else
#define inline
#define FLOAT_COLOR(VAL, COL) ((double)(((VAL).COL*1.0)/65535.0))
static GdkColor qtcGdkColor(double r, double g, double b)
{
GdkColor col;
col.red=limit(r*65535);
col.green=limit(g*65535);
col.blue=limit(b*65535);
return col;
}
#define TO_COLOR(R, G, B) qtcGdkColor(R, G, B)
#endif
static inline double ColorUtils_normalize(double a)
{
return (a < 1.0 ? (a > 0.0 ? a : 0.0) : 1.0);
}
static inline double ColorUtils_wrap(double a)
{
static double d = 1.0;
double r = fmod(a, d);
return (r < 0.0 ? d + r : (r > 0.0 ? r : 0.0));
}
#define HCY_REC 709 // use 709 for now
#if HCY_REC == 601
static const double yc[3] = { 0.299, 0.587, 0.114 };
#elif HCY_REC == 709
static const double yc[3] = {0.2126, 0.7152, 0.0722};
#else // use Qt values
static const double yc[3] = { 0.34375, 0.5, 0.15625 };
#endif
static inline double ColorUtils_HCY_gamma(double n)
{
return pow(ColorUtils_normalize(n), 2.2);
}
static inline double ColorUtils_HCY_igamma(double n)
{
return pow(ColorUtils_normalize(n), 1.0/2.2);
}
static inline double ColorUtils_HCY_lumag(double r, double g, double b)
{
return r*yc[0] + g*yc[1] + b*yc[2];
}
typedef struct
{
double h, c, y;
} ColorUtils_HCY;
// static ColorUtils_HCY ColorUtils_HCY_fromValues(double h_, double c_, double y_/*, double a_*/)
// {
// h = h_;
// c = c_;
// y = y_;
// // a = a_;
// }
static ColorUtils_HCY ColorUtils_HCY_fromColor(const color *color)
{
ColorUtils_HCY hcy;
double r = ColorUtils_HCY_gamma(FLOAT_COLOR(*color, red));
double g = ColorUtils_HCY_gamma(FLOAT_COLOR(*color, green));
double b = ColorUtils_HCY_gamma(FLOAT_COLOR(*color, blue));
// a = color.alphaF();
// luma component
hcy.y = ColorUtils_HCY_lumag(r, g, b);
// hue component
double p = MAX(MAX(r, g), b);
double n = MIN(MIN(r, g), b);
double d = 6.0 * (p - n);
if (n == p)
hcy.h = 0.0;
else if (r == p)
hcy.h = ((g - b) / d);
else if (g == p)
hcy.h = ((b - r) / d) + (1.0 / 3.0);
else
hcy.h = ((r - g) / d) + (2.0 / 3.0);
// chroma component
if (0.0 == hcy.y || 1.0 == hcy.y)
hcy.c = 0.0;
else
hcy.c = MAX( (hcy.y - n) / hcy.y, (p - hcy.y) / (1 - hcy.y) );
return hcy;
}
static color ColorUtils_HCY_toColor(ColorUtils_HCY *hcy)
{
// start with sane component values
double _h = ColorUtils_wrap(hcy->h);
double _c = ColorUtils_normalize(hcy->c);
double _y = ColorUtils_normalize(hcy->y);
// calculate some needed variables
double _hs = _h * 6.0, th, tm;
if (_hs < 1.0) {
th = _hs;
tm = yc[0] + yc[1] * th;
}
else if (_hs < 2.0) {
th = 2.0 - _hs;
tm = yc[1] + yc[0] * th;
}
else if (_hs < 3.0) {
th = _hs - 2.0;
tm = yc[1] + yc[2] * th;
}
else if (_hs < 4.0) {
th = 4.0 - _hs;
tm = yc[2] + yc[1] * th;
}
else if (_hs < 5.0) {
th = _hs - 4.0;
tm = yc[2] + yc[0] * th;
}
else {
th = 6.0 - _hs;
tm = yc[0] + yc[2] * th;
}
// calculate RGB channels in sorted order
double tn, to, tp;
if (tm >= _y) {
tp = _y + _y * _c * (1.0 - tm) / tm;
to = _y + _y * _c * (th - tm) / tm;
tn = _y - (_y * _c);
}
else {
tp = _y + (1.0 - _y) * _c;
to = _y + (1.0 - _y) * _c * (th - tm) / (1.0 - tm);
tn = _y - (1.0 - _y) * _c * tm / (1.0 - tm);
}
// return RGB channels in appropriate order
if (_hs < 1.0)
return TO_COLOR(ColorUtils_HCY_igamma(tp), ColorUtils_HCY_igamma(to), ColorUtils_HCY_igamma(tn));
else if (_hs < 2.0)
return TO_COLOR(ColorUtils_HCY_igamma(to), ColorUtils_HCY_igamma(tp), ColorUtils_HCY_igamma(tn));
else if (_hs < 3.0)
return TO_COLOR(ColorUtils_HCY_igamma(tn), ColorUtils_HCY_igamma(tp), ColorUtils_HCY_igamma(to));
else if (_hs < 4.0)
return TO_COLOR(ColorUtils_HCY_igamma(tn), ColorUtils_HCY_igamma(to), ColorUtils_HCY_igamma(tp));
else if (_hs < 5.0)
return TO_COLOR(ColorUtils_HCY_igamma(to), ColorUtils_HCY_igamma(tn), ColorUtils_HCY_igamma(tp));
else
return TO_COLOR(ColorUtils_HCY_igamma(tp), ColorUtils_HCY_igamma(tn), ColorUtils_HCY_igamma(to));
}
// #ifndef __cplusplus
static inline double ColorUtils_HCY_luma(const color *color)
{
return ColorUtils_HCY_lumag(ColorUtils_HCY_gamma(FLOAT_COLOR(*color, red)),
ColorUtils_HCY_gamma(FLOAT_COLOR(*color, green)),
ColorUtils_HCY_gamma(FLOAT_COLOR(*color, blue)));
}
static inline double ColorUtils_mixQreal(double a, double b, double bias)
{
return a + (b - a) * bias;
}
static inline double ColorUtils_luma(const color *color)
{
return ColorUtils_HCY_luma(color);
}
static double ColorUtils_contrastRatio(const color *c1, const color *c2)
{
double y1 = ColorUtils_luma(c1), y2 = ColorUtils_luma(c2);
if (y1 > y2)
return (y1 + 0.05) / (y2 + 0.05);
else
return (y2 + 0.05) / (y1 + 0.05);
}
static color ColorUtils_lighten(const color *color, double ky, double kc)
{
ColorUtils_HCY c=ColorUtils_HCY_fromColor(color);
c.y = 1.0 - ColorUtils_normalize((1.0 - c.y) * (1.0 - ky));
c.c = 1.0 - ColorUtils_normalize((1.0 - c.c) * kc);
return ColorUtils_HCY_toColor(&c);
}
static color ColorUtils_darken(const color *color, double ky, double kc)
{
ColorUtils_HCY c=ColorUtils_HCY_fromColor(color);
c.y = ColorUtils_normalize(c.y * (1.0 - ky));
c.c = ColorUtils_normalize(c.c * kc);
return ColorUtils_HCY_toColor(&c);
}
static color ColorUtils_shade(const color *color, double ky, double kc)
{
ColorUtils_HCY c=ColorUtils_HCY_fromColor(color);
c.y = ColorUtils_normalize(c.y + ky);
c.c = ColorUtils_normalize(c.c + kc);
return ColorUtils_HCY_toColor(&c);
}
static color ColorUtils_mix(const color *c1, const color *c2, double bias);
static color ColorUtils_tintHelper(const color *base, const color *col, double amount)
{
color mixed=ColorUtils_mix(base, col, pow(amount, 0.3));
ColorUtils_HCY c=ColorUtils_HCY_fromColor(&mixed);
c.y = ColorUtils_mixQreal(ColorUtils_luma(base), c.y, amount);
return ColorUtils_HCY_toColor(&c);
}
static color ColorUtils_tint(const color *base, const color *col, double amount)
{
if (amount <= 0.0) return *base;
if (amount >= 1.0) return *col;
if (isnan(amount)) return *base;
double ri = ColorUtils_contrastRatio(base, col);
double rg = 1.0 + ((ri + 1.0) * amount * amount * amount);
double u = 1.0, l = 0.0;
color result;
int i;
for (i = 12 ; i ; --i) {
double a = 0.5 * (l+u);
result = ColorUtils_tintHelper(base, col, a);
double ra = ColorUtils_contrastRatio(base, &result);
if (ra > rg)
u = a;
else
l = a;
}
return result;
}
static color ColorUtils_mix(const color *c1, const color *c2, double bias)
{
if (bias <= 0.0) return *c1;
if (bias >= 1.0) return *c2;
if (isnan(bias)) return *c1;
{
double r = ColorUtils_mixQreal(FLOAT_COLOR(*c1, red), FLOAT_COLOR(*c2, red), bias);
double g = ColorUtils_mixQreal(FLOAT_COLOR(*c1, green), FLOAT_COLOR(*c2, green), bias);
double b = ColorUtils_mixQreal(FLOAT_COLOR(*c1, blue), FLOAT_COLOR(*c2, blue), bias);
/*double a = ColorUtils_mixQreal(FLOAT_COLOR(*c1, alpha), FLOAT_COLOR(*c2, alpha), bias);*/
return TO_COLOR(r, g, b);
}
}
// #endif
/* Added!!! */
// static color ColorUtils_shade_qtc(const color *color, double k)
// {
// ColorUtils_HCY c=ColorUtils_HCY_fromColor(color);
// c.y = ColorUtils_normalize(c.y * (k>1.0 ? (k*1.1) : (k<1.0 ? (k*0.9) : k)));
// return ColorUtils_HCY_toColor(&c);
// }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

@ -4,4 +4,10 @@
#define VERSION "@QTCURVE_VERSION_FULL@"
#define KDE3PREFIX "@KDE3PREFIX@"
#define KDE4PREFIX "@KDE4PREFIX@"
#cmakedefine QTC_QT_ONLY
#cmakedefine QTC_DEFAULT_TO_KDE3
#cmakedefine QTC_STYLE_SUPPORT
#cmakedefine QTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
#endif

@ -1,7 +1,12 @@
if (QTC_STYLE_SUPPORT)
set(kstyle_qtcurve_config_PART_SRCS qtcurveconfig.cpp exportthemedialog.cpp)
else (QTC_STYLE_SUPPORT)
set(kstyle_qtcurve_config_PART_SRCS qtcurveconfig.cpp)
endif (QTC_STYLE_SUPPORT)
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/common ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR})
kde3_add_ui_files(kstyle_qtcurve_config_PART_SRCS qtcurveconfigbase.ui)
kde3_add_kpart(kstyle_qtcurve_config ${kstyle_qtcurve_config_PART_SRCS})
kde3_automoc(${kstyle_qtcurve_config_PART_SRCS})
target_link_libraries(kstyle_qtcurve_config ${KDE3_KDEUI_LIBS} ${KDE3_KIO_LIBS} ${KDE3_KDECORE_LIBS} ${QT_QTGUI_LIBRARY})
target_link_libraries(kstyle_qtcurve_config ${QT_AND_KDECORE_LIBS} kio kdeui)
install(TARGETS kstyle_qtcurve_config DESTINATION ${KDE3_LIB_DIR}/kde3)

@ -1,5 +1,5 @@
/*
QtCurve (C) Craig Drummond, 2003 - 2007 Craig.Drummond@lycos.co.uk
QtCurve (C) Craig Drummond, 2003 - 2010 craig.p.drummond@gmail.com
----
@ -64,7 +64,7 @@ void CExportThemeDialog::slotOk()
KMessageBox::error(this, i18n("Name is empty!"));
else
{
QString fileName(themeUrl->url()+"/"QTC_THEME_PREFIX+name+".themerc");
QString fileName(themeUrl->url()+"/"THEME_PREFIX+name+".themerc");
KConfig cfg(fileName, false, false);
bool rv(!cfg.isReadOnly());
@ -75,7 +75,7 @@ void CExportThemeDialog::slotOk()
cfg.writeEntry("Name", themeName->text().stripWhiteSpace());
cfg.writeEntry("Comment", themeComment->text());
cfg.setGroup("KDE");
cfg.writeEntry("WidgetStyle", QTC_THEME_PREFIX+name);
cfg.writeEntry("WidgetStyle", THEME_PREFIX+name);
rv=writeConfig(&cfg, opts, opts, true);
}

@ -2,7 +2,7 @@
#define __EXPORT_THEME_DIALOG_H__
/*
QtCurve (C) Craig Drummond, 2007 Craig.Drummond@lycos.co.uk
QtCurve (C) Craig Drummond, 2007 - 2010 craig.p.drummond@gmail.com
----
@ -22,7 +22,7 @@
*/
#include <kdialogbase.h>
#define QTC_CONFIG_DIALOG
#define CONFIG_DIALOG
#include "common.h"
class KURLRequester;

File diff suppressed because it is too large Load Diff

@ -2,7 +2,7 @@
#define __QTCURVECONFIG_H__
/*
QtCurve (C) Craig Drummond, 2003 - 2007 Craig.Drummond@lycos.co.uk
QtCurve (C) Craig Drummond, 2003 - 2010 craig.p.drummond@gmail.com
----
@ -21,15 +21,46 @@
Boston, MA 02110-1301, USA.
*/
#define QTC_COMMON_ONLY_COVERTERS
#define QTC_CONFIG_DIALOG
#define COMMON_FUNCTIONS
#define CONFIG_DIALOG
#include <qtcurveconfigbase.h>
#include <qcombobox.h>
#include <qmap.h>
#include "common.h"
class QPopupMenu;
class QListViewItem;
class KDoubleNumInput;
#ifdef QTC_STYLE_SUPPORT
class CExportThemeDialog;
#endif
class CStackItem;
class QtCurveConfig;
class CGradientPreview : public QWidget
{
Q_OBJECT
public:
CGradientPreview(QtCurveConfig *c, QWidget *p);
QSize sizeHint() const;
QSize minimumSizeHint() const;
void paintEvent(QPaintEvent *);
void setGrad(const GradientStopCont &s);
public slots:
void setColor(const QColor &col);
private:
QtCurveConfig *cfg;
QColor color;
GradientStopCont stops;
};
class QtCurveConfig : public QtCurveConfigBase
{
@ -40,6 +71,8 @@ class QtCurveConfig : public QtCurveConfigBase
QtCurveConfig(QWidget *parent);
virtual ~QtCurveConfig();
EShading currentShading() const { return (EShading)shading->currentItem(); }
signals:
void changed(bool);
@ -57,25 +90,53 @@ class QtCurveConfig : public QtCurveConfigBase
void setStyle(int s);
void updateChanged();
void focusChanged();
void roundChanged();
void importStyle();
void exportStyle();
void exportTheme();
void emboldenToggled();
void dbiChanged();
void defBtnIndicatorChanged();
void buttonEffectChanged();
void coloredMouseOverChanged();
void shadeSlidersChanged();
void shadeMenubarsChanged();
void shadeCheckRadioChanged();
void customMenuTextColorChanged();
void menuStripeChanged();
void comboBtnChanged();
void sortedLvChanged();
void stripedProgressChanged();
void tabAppearanceChanged();
void activeTabAppearanceChanged();
void tabMoChanged();
void shadingChanged();
void passwordCharClicked();
void unifySpinBtnsToggled();
void unifySpinToggled();
void sliderThumbChanged();
void sliderWidthChanged();
void changeStack();
void gradChanged(int i);
void itemChanged(QListViewItem *i, int col);
void addGradStop();
void removeGradStop();
void updateGradStop();
void stopSelected();
private:
void setupStack();
void setupGradientsTab();
void setupShadesTab();
void setupShade(KDoubleNumInput *w, int shade);
void populateShades(const Options &opts);
bool diffShades(const Options &opts);
void setPasswordChar(int ch);
void loadStyle(const QString &file);
void setOptions(Options &opts);
void setWidgetOptions(const Options &opts);
int getSquareFlags();
int getWindowBorderFlags();
bool settingsChanged();
private:
@ -83,7 +144,13 @@ class QtCurveConfig : public QtCurveConfigBase
Options currentStyle,
defaultStyle;
QMap<int, QString> styles;
#ifdef QTC_STYLE_SUPPORT
CExportThemeDialog *exportDialog;
#endif
CGradientPreview *gradPreview;
GradientCont customGradient;
KDoubleNumInput *shadeVals[NUM_STD_SHADES];
CStackItem *lastCategory;
};
#endif

File diff suppressed because it is too large Load Diff

@ -0,0 +1,25 @@
find_program(GETTEXT_MSGFMT_EXECUTABLE msgfmt)
if(NOT GETTEXT_MSGFMT_EXECUTABLE)
message("------\n"
"NOTE: msgfmt not found. Translations will *not* be installed\n"
"------\n")
else(NOT GETTEXT_MSGFMT_EXECUTABLE)
set(catalogname qtcurve)
add_custom_target(translations ALL)
file(GLOB PO_FILES *.po)
foreach(_poFile ${PO_FILES})
get_filename_component(_poFileName ${_poFile} NAME)
string(REGEX REPLACE "^${catalogname}_?" "" _langCode ${_poFileName} )
string(REGEX REPLACE "\\.po$" "" _langCode ${_langCode} )
if(_langCode)
get_filename_component(_lang ${_poFile} NAME_WE)
set(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
add_custom_command(TARGET translations
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${_gmoFile} ${_poFile}
DEPENDS ${_poFile})
install(FILES ${_gmoFile} DESTINATION ${KDE3_LOCALE_PREFIX}/${_langCode}/LC_MESSAGES/ RENAME ${catalogname}.mo)
endif( _langCode )
endforeach(_poFile ${PO_FILES})
endif(NOT GETTEXT_MSGFMT_EXECUTABLE)

@ -0,0 +1,48 @@
#!/bin/sh
BASEDIR=".." # root of translatable sources
PROJECT="qtcurve" # project name
BUGADDR="http://sourceforge.net/tracker/?group_id=50231&atid=459007" # MSGID-Bugs
WDIR=`pwd` # working dir
echo "Preparing rc files"
cd ${BASEDIR}
# we use simple sorting to make sure the lines do not jump around too much from system to system
find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' | sort > ${WDIR}/rcfiles.list
xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp
# additional string for KAboutData
echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> ${WDIR}/rc.cpp
echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> ${WDIR}/rc.cpp
cd ${WDIR}
echo "Done preparing rc files"
echo "Extracting messages"
cd ${BASEDIR}
# see above on sorting
find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${WDIR}/infiles.list
echo "rc.cpp" >> ${WDIR}/infiles.list
cd ${WDIR}
xgettext --from-code=UTF-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
-kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
--msgid-bugs-address="${BUGADDR}" \
--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; }
#Fix charset...
cat ${PROJECT}.pot | sed s^charset=CHARSET^charset=UTF-8^g > ${PROJECT}.pot-new
mv ${PROJECT}.pot-new ${PROJECT}.pot
echo "Done extracting messages"
echo "Merging translations"
catalogs=`find . -name '*.po'`
for cat in $catalogs; do
echo $cat
msgmerge -o $cat.new $cat ${PROJECT}.pot
mv $cat.new $cat
done
echo "Done merging translations"
echo "Cleaning up"
cd ${WDIR}
rm rcfiles.list
rm infiles.list
rm rc.cpp
echo "Done"

File diff suppressed because it is too large Load Diff

1509
po/tr.po

File diff suppressed because it is too large Load Diff

@ -1,10 +1,22 @@
if (NOT QTC_QT_ONLY)
set(qtcurve_SRCS qtcurve.cpp pixmaps.h)
add_definitions(-DQT_PLUGIN)
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common)
link_directories(${KDE3_LIB_DIR})
kde3_automoc(${qtcurve_SRCS})
add_library(qtcurve SHARED ${qtcurve_SRCS})
add_library(qtcurve MODULE ${qtcurve_SRCS})
set_target_properties(qtcurve PROPERTIES PREFIX "")
target_link_libraries(qtcurve ${QT_QTGUI_LIBRARY} kdefx)
target_link_libraries(qtcurve ${QT_LIBRARIES} kdefx)
install(TARGETS qtcurve LIBRARY DESTINATION ${KDE3_LIB_DIR}/kde3/plugins/styles)
install(FILES qtcurve.themerc DESTINATION ${KDE3PREFIX}/share/apps/kstyle/themes)
else (NOT QTC_QT_ONLY)
set(qtcurve_MOC_CLASSES qtcurve.h qtc_kstyle.h)
QTCURVE_QT_WRAP_CPP(qtcurve_MOC_SRCS ${qtcurve_MOC_CLASSES})
set(qtcurve_SRCS qtcurve.cpp qtc_kstyle.cpp pixmaps.h)
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common)
add_library(qtcurve MODULE ${qtcurve_SRCS} ${qtcurve_MOC_SRCS})
set_target_properties(qtcurve PROPERTIES PREFIX "")
target_link_libraries(qtcurve ${QT_LIBRARIES})
install(TARGETS qtcurve LIBRARY DESTINATION ${QT_PLUGINS_DIR}/styles)
endif (NOT QTC_QT_ONLY)

@ -35,6 +35,30 @@ static const unsigned char radio_frame_png_data[] = {
};
/* Generated by qembed */
static const unsigned int radio_inner_png_len = 276;
static const unsigned char radio_inner_png_data[] = {
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,
0x44,0x52,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x0d,0x08,0x04,0x00,0x00,
0x00,0xd8,0xe2,0x2c,0xf7,0x00,0x00,0x00,0x01,0x73,0x52,0x47,0x42,0x00,
0xae,0xce,0x1c,0xe9,0x00,0x00,0x00,0x02,0x62,0x4b,0x47,0x44,0x00,0x00,
0xaa,0x8d,0x23,0x32,0x00,0x00,0x00,0x09,0x70,0x48,0x59,0x73,0x00,0x00,
0x0b,0x13,0x00,0x00,0x0b,0x13,0x01,0x00,0x9a,0x9c,0x18,0x00,0x00,0x00,
0x07,0x74,0x49,0x4d,0x45,0x07,0xd8,0x0c,0x0a,0x0c,0x30,0x0e,0xa9,0x10,
0xdb,0x17,0x00,0x00,0x00,0x98,0x49,0x44,0x41,0x54,0x18,0xd3,0x85,0x8c,
0x31,0x0a,0xc2,0x40,0x10,0x45,0x1f,0x62,0x95,0x9b,0x18,0x16,0x6b,0xf1,
0x08,0xa6,0xf5,0x04,0x36,0x5a,0x59,0x6e,0x61,0x9b,0x0b,0x04,0xcc,0x01,
0x2c,0x72,0x0c,0x6b,0x3d,0x81,0x85,0x20,0x04,0x0b,0x31,0x45,0x18,0x85,
0x80,0x36,0x81,0x58,0x0c,0x92,0x65,0x40,0xfc,0xd5,0x1b,0xde,0xfc,0x0f,
0x7f,0x33,0xc4,0x23,0x74,0xbc,0xc8,0x88,0x42,0xe1,0x28,0xa9,0xd9,0x30,
0x65,0xc9,0x85,0x07,0xb3,0xbe,0x51,0xb2,0x0f,0x1e,0x73,0x6e,0xc4,0x8a,
0x9e,0xda,0xcc,0x9f,0xd8,0x2a,0x08,0xa9,0x51,0x0b,0x2a,0x85,0x8e,0xc4,
0x28,0x47,0x0b,0x03,0xe0,0xcd,0xd8,0xa8,0x11,0x8d,0x42,0xc6,0xd5,0xa8,
0x03,0x85,0x42,0xc4,0x93,0x5d,0x20,0x3c,0xc2,0xe4,0x7b,0x24,0xdc,0x39,
0xb3,0xc2,0x31,0xe7,0x88,0xb0,0x0e,0x27,0x62,0x72,0x2a,0x5a,0x84,0xa2,
0x6f,0xfc,0xcc,0x07,0xef,0xe8,0x26,0x2e,0x6f,0x29,0xb2,0x5f,0x00,0x00,
0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82
};
static const unsigned int radio_light_png_len = 236;
static const unsigned char radio_light_png_data[] = {
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,
@ -56,25 +80,47 @@ static const unsigned char radio_light_png_data[] = {
0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82
};
static const unsigned int radio_on_png_len = 231;
static const unsigned int radio_on_png_len = 221;
static const unsigned char radio_on_png_data[] = {
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,
0x44,0x52,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x0d,0x08,0x06,0x00,0x00,
0x00,0x72,0xeb,0xe4,0x7c,0x00,0x00,0x00,0x06,0x62,0x4b,0x47,0x44,0x00,
0xff,0x00,0xff,0x00,0xff,0xa0,0xbd,0xa7,0x93,0x00,0x00,0x00,0x09,0x70,
0x48,0x59,0x73,0x00,0x00,0x0b,0x13,0x00,0x00,0x0b,0x13,0x01,0x00,0x9a,
0x9c,0x18,0x00,0x00,0x00,0x07,0x74,0x49,0x4d,0x45,0x07,0xd7,0x05,0x1d,
0x0b,0x26,0x21,0x2a,0x9e,0xfa,0x9e,0x00,0x00,0x00,0x74,0x49,0x44,0x41,
0x54,0x28,0xcf,0xd5,0xd0,0x3d,0x0e,0x82,0x50,0x10,0x04,0xe0,0x4f,0xa9,
0x68,0x39,0x84,0x3d,0xb7,0x80,0x96,0xda,0x23,0xd8,0x51,0xd8,0x7a,0x2f,
0x2f,0xc0,0x19,0x80,0xd2,0xc6,0xe6,0x9d,0xc1,0xe6,0x91,0xbc,0x6c,0x50,
0x5b,0x9d,0x64,0xb3,0x7f,0x33,0xd9,0xcc,0xf2,0x77,0xb8,0x60,0xc2,0x9c,
0x73,0x17,0x09,0xd5,0x8e,0x00,0xee,0x68,0x73,0x3d,0x60,0xc1,0xba,0x91,
0x8e,0x41,0x74,0xc6,0x13,0x63,0x98,0xdf,0xca,0xe6,0x10,0x96,0x33,0x52,
0x98,0x35,0x39,0x9f,0xde,0x5d,0x4a,0x05,0xa9,0x14,0xa4,0x4f,0x9e,0x1e,
0xe8,0x51,0xe7,0xd8,0x70,0x2d,0x3d,0xed,0xa1,0xfb,0xf6,0xbd,0x1f,0xc7,
0x0b,0x02,0x3c,0x12,0x4f,0x16,0x9a,0x81,0xa2,0x00,0x00,0x00,0x00,0x49,
0x45,0x4e,0x44,0xae,0x42,0x60,0x82
0x00,0x72,0xeb,0xe4,0x7c,0x00,0x00,0x00,0x01,0x73,0x52,0x47,0x42,0x00,
0xae,0xce,0x1c,0xe9,0x00,0x00,0x00,0x06,0x62,0x4b,0x47,0x44,0x00,0xff,
0x00,0xff,0x00,0xff,0xa0,0xbd,0xa7,0x93,0x00,0x00,0x00,0x09,0x70,0x48,
0x59,0x73,0x00,0x00,0x0b,0x13,0x00,0x00,0x0b,0x13,0x01,0x00,0x9a,0x9c,
0x18,0x00,0x00,0x00,0x07,0x74,0x49,0x4d,0x45,0x07,0xd9,0x04,0x11,0x0a,
0x2d,0x0a,0x29,0xa8,0x47,0x5a,0x00,0x00,0x00,0x5d,0x49,0x44,0x41,0x54,
0x28,0xcf,0xd5,0xd0,0xb1,0x09,0x80,0x40,0x0c,0x05,0xd0,0xa7,0x56,0xb6,
0x37,0x8d,0x23,0xe8,0x44,0xae,0xe8,0x0c,0x62,0x69,0x7d,0x33,0xd8,0x9c,
0xa0,0xe1,0x0a,0x0b,0x0b,0xfd,0xf0,0x09,0x81,0xbc,0x26,0xfc,0x2e,0x23,
0x16,0xac,0x65,0x8e,0x4f,0xc0,0x5a,0xe9,0x0d,0x36,0x01,0x2d,0x48,0xc8,
0x65,0x4f,0x65,0x66,0x0c,0xe7,0x51,0x1b,0xd0,0x15,0xa8,0xe0,0x2a,0xca,
0xe1,0x20,0x05,0x0c,0xba,0x80,0x76,0x4c,0xe8,0x4b,0xcf,0xcc,0xd8,0x5e,
0xfd,0xde,0xc7,0x72,0x00,0x70,0x62,0x14,0x61,0xef,0x49,0xda,0x94,0x00,
0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82
};
static const unsigned int radio_on_small_png_len = 258;
static const unsigned char radio_on_small_png_data[] = {
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,
0x44,0x52,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x0d,0x08,0x06,0x00,0x00,
0x00,0x72,0xeb,0xe4,0x7c,0x00,0x00,0x00,0x01,0x73,0x52,0x47,0x42,0x00,
0xae,0xce,0x1c,0xe9,0x00,0x00,0x00,0x06,0x62,0x4b,0x47,0x44,0x00,0xff,
0x00,0xff,0x00,0xff,0xa0,0xbd,0xa7,0x93,0x00,0x00,0x00,0x09,0x70,0x48,
0x59,0x73,0x00,0x00,0x0b,0x13,0x00,0x00,0x0b,0x13,0x01,0x00,0x9a,0x9c,
0x18,0x00,0x00,0x00,0x07,0x74,0x49,0x4d,0x45,0x07,0xd9,0x0a,0x14,0x0b,
0x13,0x19,0x65,0xff,0x39,0x9d,0x00,0x00,0x00,0x82,0x49,0x44,0x41,0x54,
0x28,0xcf,0xcd,0xd0,0x31,0x0a,0xc2,0x50,0x10,0x04,0xd0,0xa7,0x82,0xf0,
0x41,0x9b,0x78,0x0b,0xdb,0x9c,0xc1,0xc6,0xeb,0xa4,0xcf,0x65,0x2c,0x3c,
0x84,0x07,0x51,0x1b,0x0b,0x49,0x6b,0x0a,0x45,0x02,0x22,0x62,0xb3,0x82,
0x04,0x63,0x95,0x22,0xd3,0x0c,0x3b,0xcc,0xcc,0x2e,0xcb,0xa0,0x31,0xfa,
0xa1,0x25,0xac,0x90,0xa1,0xc6,0x0e,0xcd,0xbf,0x92,0x84,0x12,0x07,0x54,
0xd8,0xc7,0x9c,0xbe,0x4d,0x93,0x56,0x68,0x8d,0x02,0x77,0x5c,0x31,0xc3,
0x12,0x27,0x1c,0x3f,0xa6,0x71,0x2b,0xb4,0xc0,0x0b,0x8f,0xe0,0x1a,0xf3,
0x38,0x55,0x57,0xe8,0x12,0xda,0x34,0x38,0xc3,0x2d,0xc2,0x9d,0xe7,0x9d,
0xa3,0x39,0x8f,0xad,0x0d,0xb6,0xd8,0xe0,0xd9,0xeb,0xf7,0x06,0x86,0x37,
0x26,0x03,0x19,0xb1,0xe6,0xd3,0x1d,0x4f,0x00,0x00,0x00,0x00,0x49,0x45,
0x4e,0x44,0xae,0x42,0x60,0x82
};
static const unsigned int check_on_png_len = 179;
@ -140,67 +186,33 @@ static const unsigned char slider_light_png_data[] = {
0x42,0x60,0x82
};
static const unsigned int slider_v_png_len = 310;
static const unsigned char slider_v_png_data[] = {
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,
0x44,0x52,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x15,0x08,0x06,0x00,0x00,
0x00,0x9d,0x6e,0x64,0x8a,0x00,0x00,0x00,0x06,0x62,0x4b,0x47,0x44,0x00,
0xff,0x00,0xff,0x00,0xff,0xa0,0xbd,0xa7,0x93,0x00,0x00,0x00,0x09,0x70,
0x48,0x59,0x73,0x00,0x00,0x0b,0x13,0x00,0x00,0x0b,0x13,0x01,0x00,0x9a,
0x9c,0x18,0x00,0x00,0x00,0x07,0x74,0x49,0x4d,0x45,0x07,0xd7,0x06,0x19,
0x0b,0x21,0x3b,0x50,0x7f,0x78,0xa4,0x00,0x00,0x00,0xc3,0x49,0x44,0x41,
0x54,0x38,0xcb,0xed,0xd4,0x31,0x4e,0x02,0x41,0x14,0x87,0xf1,0x5f,0xa0,
0xa3,0x5f,0x3a,0xc2,0x1d,0x0c,0x21,0x48,0x24,0xf4,0x36,0x9a,0x58,0xee,
0x0d,0xa8,0xac,0xe1,0x16,0x36,0x34,0x9e,0x02,0x2e,0xc0,0x19,0x30,0x6e,
0xa2,0x26,0x54,0x34,0xc6,0x06,0x05,0xeb,0xa5,0x19,0xc8,0x92,0x2c,0x32,
0xda,0xd8,0xf0,0x35,0x33,0x99,0x79,0x5f,0x5e,0x26,0x79,0xff,0xe1,0x90,
0x04,0x53,0x3c,0x23,0x0f,0xeb,0x34,0x9c,0xef,0xa9,0x14,0xf6,0x29,0x16,
0x78,0xc7,0x08,0x5d,0x0c,0xb1,0xc4,0x5b,0xb8,0x3f,0x20,0xc5,0x2b,0xfa,
0xca,0xe9,0x62,0x5e,0x14,0x13,0x6c,0xd0,0xf3,0x33,0x1d,0x7c,0x22,0xa9,
0x62,0x80,0x0f,0x3c,0x9c,0x90,0x96,0x68,0xa0,0x29,0x3c,0xf6,0x4e,0x1c,
0xd7,0xa1,0x5e,0x8e,0xcb,0x48,0xe9,0x02,0x79,0xc5,0x1f,0x38,0x4b,0xff,
0x22,0x65,0xa8,0x47,0xd6,0xd7,0x91,0x55,0x51,0xc3,0x15,0x26,0x11,0xd2,
0x3d,0x66,0xbb,0x29,0xff,0x8e,0x18,0xa5,0x16,0xbe,0x8a,0x81,0x4c,0xf1,
0x12,0x72,0x53,0x46,0x1b,0x4f,0xc7,0x82,0xb8,0xc6,0x23,0x6e,0x43,0xe7,
0x1b,0x8c,0xb1,0x2a,0x13,0x7e,0xf5,0x47,0x6c,0x01,0x0f,0x64,0x29,0x02,
0xd4,0x3b,0x9e,0x77,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,
0x60,0x82
};
static const unsigned int slider_light_v_png_len = 204;
static const unsigned char slider_light_v_png_data[] = {
static const unsigned int check_x_on_png_len = 154;
static const unsigned char check_x_on_png_data[] = {
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,
0x44,0x52,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x15,0x08,0x06,0x00,0x00,
0x00,0x9d,0x6e,0x64,0x8a,0x00,0x00,0x00,0x93,0x49,0x44,0x41,0x54,0x38,
0xcb,0xed,0xd3,0xa1,0x0a,0x02,0x51,0x10,0x85,0xe1,0x8f,0x75,0x41,0x10,
0x9b,0x4d,0x11,0xb1,0x18,0xad,0x46,0x93,0xdd,0x6a,0xf3,0x51,0x4c,0x3e,
0x97,0x46,0x93,0x6f,0x20,0x88,0x60,0x5f,0x58,0x0c,0x06,0xd7,0x72,0xc3,
0x65,0x51,0xd9,0x5d,0x30,0x08,0x9e,0x32,0xc3,0x9d,0xf9,0x39,0x77,0x60,
0x86,0x06,0x6a,0x45,0x79,0x8a,0x11,0x96,0x38,0x62,0x83,0x36,0x86,0xc8,
0x90,0xe3,0x01,0x49,0x04,0xcc,0x70,0xc2,0x04,0x0b,0x4c,0xb1,0xc3,0x00,
0x3d,0x14,0x65,0xc7,0x71,0x78,0x5c,0xa1,0x5b,0xaa,0x75,0xde,0x7d,0x73,
0x8d,0xed,0x0b,0xe0,0xa3,0x0a,0xcc,0xab,0x36,0x27,0x51,0x7e,0x6d,0x02,
0xf9,0x43,0x3f,0x01,0xf5,0xeb,0x9e,0xc6,0x39,0x6c,0xf9,0x01,0xf7,0xaa,
0x4e,0xfb,0x10,0xf3,0x3a,0x4e,0x39,0x6e,0xb8,0xd4,0x9d,0x2f,0xf5,0x4d,
0x3d,0x01,0xf6,0xc8,0x14,0xaa,0x58,0xc9,0x89,0xb4,0x00,0x00,0x00,0x00,
0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82
0x44,0x52,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x09,0x08,0x06,0x00,0x00,
0x00,0xe0,0x91,0x06,0x10,0x00,0x00,0x00,0x61,0x49,0x44,0x41,0x54,0x18,
0x95,0x6d,0x8f,0x41,0x11,0xc0,0x30,0x08,0x04,0xb7,0x83,0x83,0xea,0x88,
0xa0,0x88,0xe9,0xb3,0x1a,0xaa,0x01,0x1d,0xd1,0x50,0x41,0xfd,0x5c,0x12,
0x60,0xca,0xef,0x60,0xe1,0x0e,0x03,0x2e,0xe0,0x01,0x4e,0x60,0xb0,0x6b,
0xf5,0x0f,0xe0,0x0d,0x03,0x07,0x6e,0x01,0x7d,0x36,0x4d,0x17,0x9a,0x74,
0x93,0xee,0x71,0xd1,0x64,0x51,0xc1,0x74,0xd9,0x24,0x2a,0x18,0xad,0x99,
0x50,0xca,0x50,0xac,0x87,0xfd,0x00,0x5e,0x33,0x9a,0xde,0xac,0x16,0x29,
0x63,0xfc,0x6e,0x65,0x28,0x19,0xfd,0x03,0xc4,0xa9,0x14,0xf0,0x37,0xcf,
0xd8,0xd2,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82
};
static const unsigned int check_x_on_png_len = 181;
static const unsigned char check_x_on_png_data[] = {
static const unsigned int dot_png_len = 130;
static const unsigned char dot_png_data[] = {
0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,
0x44,0x52,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x09,0x08,0x06,0x00,0x00,
0x00,0xe0,0x91,0x06,0x10,0x00,0x00,0x00,0x09,0x70,0x48,0x59,0x73,0x00,
0x00,0x0b,0x13,0x00,0x00,0x0b,0x13,0x01,0x00,0x9a,0x9c,0x18,0x00,0x00,
0x00,0x1d,0x74,0x45,0x58,0x74,0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x00,
0x43,0x72,0x65,0x61,0x74,0x65,0x64,0x20,0x77,0x69,0x74,0x68,0x20,0x54,
0x68,0x65,0x20,0x47,0x49,0x4d,0x50,0xef,0x64,0x25,0x6e,0x00,0x00,0x00,
0x3e,0x49,0x44,0x41,0x54,0x18,0x95,0x95,0x8f,0x4b,0x0a,0x00,0x20,0x08,
0x05,0x07,0xba,0xb6,0x97,0xab,0x7b,0x45,0xee,0xea,0x91,0x86,0x24,0xb8,
0x70,0x18,0x7f,0x0d,0x30,0xa0,0x03,0x13,0x18,0x9c,0x50,0xce,0x92,0x34,
0x11,0x94,0x07,0x90,0xd5,0x69,0x67,0x10,0x5e,0x62,0x29,0x94,0xab,0xd2,
0x89,0x5f,0xdf,0xdd,0x37,0x6c,0xee,0x67,0xfc,0x35,0xc3,0xb2,0x07,0xf6,
0x7b,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82
0x44,0x52,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x05,0x08,0x04,0x00,0x00,
0x00,0x27,0x66,0xee,0x6e,0x00,0x00,0x00,0x01,0x73,0x52,0x47,0x42,0x00,
0xae,0xce,0x1c,0xe9,0x00,0x00,0x00,0x02,0x62,0x4b,0x47,0x44,0x00,0xff,
0x87,0x8f,0xcc,0xbf,0x00,0x00,0x00,0x2e,0x49,0x44,0x41,0x54,0x08,0xd7,
0x63,0x64,0xe0,0x62,0x88,0x63,0x50,0x64,0xf8,0xc7,0x30,0x8f,0x81,0x21,
0x83,0x41,0x8d,0x81,0x81,0x81,0x81,0xa1,0x8e,0x81,0xa1,0x97,0x01,0x0a,
0x98,0x18,0xfe,0x32,0xc0,0x81,0x2a,0x43,0x33,0x84,0x01,0x00,0xb7,0x94,
0x05,0x67,0x58,0x92,0xdc,0x0c,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,
0xae,0x42,0x60,0x82
};
#include <qcstring.h>
@ -211,14 +223,15 @@ static struct Embed {
const char *name;
} embed_vec[] = {
{ 419, radio_frame_png_data, "radio_frame.png" },
{ 276, radio_inner_png_data, "radio_inner.png" },
{ 236, radio_light_png_data, "radio_light.png" },
{ 231, radio_on_png_data, "radio_on.png" },
{ 221, radio_on_png_data, "radio_on.png" },
{ 258, radio_on_small_png_data, "radio_on_small.png" },
{ 179, check_on_png_data, "check_on.png" },
{ 311, slider_png_data, "slider.png" },
{ 199, slider_light_png_data, "slider_light.png" },
{ 310, slider_v_png_data, "slider_v.png" },
{ 204, slider_light_v_png_data, "slider_light_v.png" },
{ 181, check_x_on_png_data, "check_x_on.png" },
{ 154, check_x_on_png_data, "check_x_on.png" },
{ 130, dot_png_data, "dot.png" },
{ 0, 0, 0 }
};

@ -0,0 +1,233 @@
//#ifdef don't do this, this file is supposed to be included
//#define multiple times
/* Usage:
If you get compile errors caused by X11 includes (the line
where first error appears contains word like None, Unsorted,
Below, etc.), put #include <fixx11h.h> in the .cpp file
(not .h file!) between the place where X11 headers are
included and the place where the file with compile
error is included (or the place where the compile error
in the .cpp file occurs).
This file remaps X11 #defines to const variables or
inline functions. The side effect may be that these
symbols may now refer to different variables
(e.g. if X11 #defined NoButton, after this file
is included NoButton would no longer be X11's
NoButton, but Qt::NoButton instead). At this time,
there's no conflict known that could cause problems.
The original X11 symbols are still accessible
(e.g. for None) as X::None, XNone, and also still
None, unless name lookup finds different None
first (in the current class, etc.)
Use 'Unsorted', 'Bool' and 'index' as templates.
*/
namespace X
{
// template --->
// Affects: Should be without side effects.
#ifdef Unsorted
#ifndef FIXX11H_Unsorted
#define FIXX11H_Unsorted
const int XUnsorted = Unsorted;
#undef Unsorted
const int Unsorted = XUnsorted;
#endif
#undef Unsorted
#endif
// template <---
// Affects: Should be without side effects.
#ifdef None
#ifndef FIXX11H_None
#define FIXX11H_None
const XID XNone = None;
#undef None
const XID None = XNone;
#endif
#undef None
#endif
// template --->
// Affects: Should be without side effects.
#ifdef Bool
#ifndef FIXX11H_Bool
#define FIXX11H_Bool
typedef Bool XBool;
#undef Bool
typedef XBool Bool;
#endif
#undef Bool
#endif
// template <---
// Affects: Should be without side effects.
#ifdef KeyPress
#ifndef FIXX11H_KeyPress
#define FIXX11H_KeyPress
const int XKeyPress = KeyPress;
#undef KeyPress
const int KeyPress = XKeyPress;
#endif
#undef KeyPress
#endif
// Affects: Should be without side effects.
#ifdef KeyRelease
#ifndef FIXX11H_KeyRelease
#define FIXX11H_KeyRelease
const int XKeyRelease = KeyRelease;
#undef KeyRelease
const int KeyRelease = XKeyRelease;
#endif
#undef KeyRelease
#endif
// Affects: Should be without side effects.
#ifdef Above
#ifndef FIXX11H_Above
#define FIXX11H_Above
const int XAbove = Above;
#undef Above
const int Above = XAbove;
#endif
#undef Above
#endif
// Affects: Should be without side effects.
#ifdef Below
#ifndef FIXX11H_Below
#define FIXX11H_Below
const int XBelow = Below;
#undef Below
const int Below = XBelow;
#endif
#undef Below
#endif
// Affects: Should be without side effects.
#ifdef FocusIn
#ifndef FIXX11H_FocusIn
#define FIXX11H_FocusIn
const int XFocusIn = FocusIn;
#undef FocusIn
const int FocusIn = XFocusIn;
#endif
#undef FocusIn
#endif
// Affects: Should be without side effects.
#ifdef FocusOut
#ifndef FIXX11H_FocusOut
#define FIXX11H_FocusOut
const int XFocusOut = FocusOut;
#undef FocusOut
const int FocusOut = XFocusOut;
#endif
#undef FocusOut
#endif
// Affects: Should be without side effects.
#ifdef Always
#ifndef FIXX11H_Always
#define FIXX11H_Always
const int XAlways = Always;
#undef Always
const int Always = XAlways;
#endif
#undef Always
#endif
// Affects: Should be without side effects.
#ifdef Success
#ifndef FIXX11H_Success
#define FIXX11H_Success
const int XSuccess = Success;
#undef Success
const int Success = XSuccess;
#endif
#undef Success
#endif
// Affects: Should be without side effects.
#ifdef GrayScale
#ifndef FIXX11H_GrayScale
#define FIXX11H_GrayScale
const int XGrayScale = GrayScale;
#undef GrayScale
const int GrayScale = XGrayScale;
#endif
#undef GrayScale
#endif
// Affects: Should be without side effects.
#ifdef Status
#ifndef FIXX11H_Status
#define FIXX11H_Status
typedef Status XStatus;
#undef Status
typedef XStatus Status;
#endif
#undef Status
#endif
// Affects: Should be without side effects.
#ifdef CursorShape
#ifndef FIXX11H_CursorShape
#define FIXX11H_CursorShape
const int XCursorShape = CursorShape;
#undef CursorShape
const int CursorShape = CursorShape;
#endif
#undef CursorShape
#endif
// template --->
// Affects: Should be without side effects.
#ifdef index
#ifndef FIXX11H_index
#define FIXX11H_index
inline
char* Xindex( const char* s, int c )
{
return index( s, c );
}
#undef index
inline
char* index( const char* s, int c )
{
return Xindex( s, c );
}
#endif
#undef index
#endif
// template <---
#ifdef rindex
// Affects: Should be without side effects.
#ifndef FIXX11H_rindex
#define FIXX11H_rindex
inline
char* Xrindex( const char* s, int c )
{
return rindex( s, c );
}
#undef rindex
inline
char* rindex( const char* s, int c )
{
return Xrindex( s, c );
}
#endif
#undef rindex
#endif
}
using namespace X;

File diff suppressed because it is too large Load Diff

@ -0,0 +1,324 @@
/*
* $Id$
*
* KStyle
* Copyright (C) 2001-2002 Karol Szwed <gallium@kde.org>
*
* QWindowsStyle CC_ListView and style images were kindly donated by TrollTech,
* Copyright (C) 1998-2000 TrollTech AS.
*
* Many thanks to Bradley T. Hughes for the 3 button scrollbar code.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __QTC_KSTYLE_H
#define __QTC_KSTYLE_H
// W A R N I N G
// -------------
// This API is still subject to change.
// I will remove this warning when I feel the API is sufficiently flexible.
#include <qcommonstyle.h>
struct QtCKStylePrivate;
/**
* Simplifies and extends the QStyle API to make style coding easier.
*
* The KStyle class provides a simple internal menu transparency engine
* which attempts to use XRender for accelerated blending where requested,
* or falls back to fast internal software tinting/blending routines.
* It also simplifies more complex portions of the QStyle API, such as
* the PopupMenuItems, ScrollBars and Sliders by providing extra "primitive
* elements" which are simple to implement by the style writer.
*
* @see QStyle::QStyle
* @see QCommonStyle::QCommonStyle
* @author Karol Szwed (gallium@kde.org)
* @version $Id$
*/
class QtCKStyle: public QCommonStyle
{
Q_OBJECT
public:
/**
* QtCKStyle Flags:
*
* @li Default - Default style setting, where menu transparency
* and the FilledFrameWorkaround are disabled.
*
* @li AllowMenuTransparency - Enable this flag to use QtCKStyle's
* internal menu transparency engine.
*
* @li FilledFrameWorkaround - Enable this flag to facilitate
* proper repaints of QMenuBars and QToolBars when the style chooses
* to paint the interior of a QFrame. The style primitives in question
* are PE_PanelMenuBar and PE_PanelDockWindow. The HighColor style uses
* this workaround to enable painting of gradients in menubars and
* toolbars.
*/
typedef uint KStyleFlags;
enum KStyleOption {
Default = 0x00000000, //!< All options disabled
AllowMenuTransparency = 0x00000001, //!< Internal transparency enabled
FilledFrameWorkaround = 0x00000002 //!< Filled frames enabled
};
/**
* KStyle ScrollBarType:
*
* Allows the style writer to easily select what type of scrollbar
* should be used without having to duplicate large amounts of source
* code by implementing the complex control CC_ScrollBar.
*
* @li WindowsStyleScrollBar - Two button scrollbar with the previous
* button at the top/left, and the next button at the bottom/right.
*
* @li PlatinumStyleScrollBar - Two button scrollbar with both the
* previous and next buttons at the bottom/right.
*
* @li ThreeButtonScrollBar - %KDE style three button scrollbar with
* two previous buttons, and one next button. The next button is always
* at the bottom/right, whilst the two previous buttons are on either
* end of the scrollbar.
*
* @li NextStyleScrollBar - Similar to the PlatinumStyle scroll bar, but
* with the buttons grouped on the opposite end of the scrollbar.
*
* @see KStyle::KStyle()
*/
enum KStyleScrollBarType {
WindowsStyleScrollBar = 0x00000000, //!< two button, windows style
PlatinumStyleScrollBar = 0x00000001, //!< two button, platinum style
ThreeButtonScrollBar = 0x00000002, //!< three buttons, %KDE style
NextStyleScrollBar = 0x00000004 //!< two button, NeXT style
};
/**
* Constructs a KStyle object.
*
* Select the appropriate KStyle flags and scrollbar type
* for your style. The user's style preferences selected in KControl
* are read by using QSettings and are automatically applied to the style.
* As a fallback, KStyle paints progressbars and tabbars. It inherits from
* QCommonStyle for speed, so don't expect much to be implemented.
*
* It is advisable to use a currently implemented style such as the HighColor
* style as a foundation for any new KStyle, so the limited number of
* drawing fallbacks should not prove problematic.
*
* @param flags the style to be applied
* @param sbtype the scroll bar type
* @see KStyle::KStyleFlags
* @see KStyle::KStyleScrollBarType
* @author Karol Szwed (gallium@kde.org)
*/
QtCKStyle( KStyleFlags flags = QtCKStyle::Default,
KStyleScrollBarType sbtype = QtCKStyle::WindowsStyleScrollBar );
/**
* Destructs the QtCKStyle object.
*/
~QtCKStyle();
/**
* Returns the default widget style depending on color depth.
*/
static QString defaultStyle();
/**
* Modifies the scrollbar type used by the style.
*
* This function is only provided for convenience. It allows
* you to make a late decision about what scrollbar type to use for the
* style after performing some processing in your style's constructor.
* In most situations however, setting the scrollbar type via the QtCKStyle
* constructor should suffice.
* @param sbtype the scroll bar type
* @see QtCKStyle::KStyleScrollBarType
*/
void setScrollBarType(KStyleScrollBarType sbtype);
/**
* Returns the KStyle flags used to initialize the style.
*
* This is used solely for the kcmstyle module, and hence is internal.
*/
KStyleFlags styleFlags() const;
/**
* KStyle Primitive Elements:
*
* The KStyle class extends the Qt's Style API by providing certain
* simplifications for parts of QStyle. To do this, the KStylePrimitive
* elements were defined, which are very similar to Qt's PrimitiveElement.
*
* The first three Handle primitives simplify and extend PE_DockWindowHandle,
* so do not reimplement PE_DockWindowHandle if you want the KStyle handle
* simplifications to be operable. Similarly do not reimplement CC_Slider,
* SC_SliderGroove and SC_SliderHandle when using the KStyle slider
* primitives. KStyle automatically double-buffers slider painting
* when they are drawn via these KStyle primitives to avoid flicker.
*
* @li KPE_DockWindowHandle - This primitive is already implemented in KStyle,
* and paints a bevelled rect with the DockWindow caption text. Re-implement
* this primitive to perform other more fancy effects when drawing the dock window
* handle.
*
* @li KPE_ToolBarHandle - This primitive must be reimplemented. It currently
* only paints a filled rectangle as default behavior. This primitive is used
* to render QToolBar handles.
*
* @li KPE_GeneralHandle - This primitive must be reimplemented. It is used
* to render general handles that are not part of a QToolBar or QDockWindow, such
* as the applet handles used in Kicker. The default implementation paints a filled
* rect of arbitrary color.
*
* @li KPE_SliderGroove - This primitive must be reimplemented. It is used to
* paint the slider groove. The default implementation paints a filled rect of
* arbitrary color.
*
* @li KPE_SliderHandle - This primitive must be reimplemented. It is used to
* paint the slider handle. The default implementation paints a filled rect of
* arbitrary color.
*
* @li KPE_ListViewExpander - This primitive is already implemented in KStyle. It
* is used to draw the Expand/Collapse element in QListViews. To indicate the
* expanded state, the style flags are set to Style_Off, while Style_On implies collapsed.
*
* @li KPE_ListViewBranch - This primitive is already implemented in KStyle. It is
* used to draw the ListView branches where necessary.
*/
enum KStylePrimitive {
KPE_DockWindowHandle,
KPE_ToolBarHandle,
KPE_GeneralHandle,
KPE_SliderGroove,
KPE_SliderHandle,
KPE_ListViewExpander,
KPE_ListViewBranch
};
/**
* This function is identical to Qt's QStyle::drawPrimitive(), except that
* it adds one further parameter, 'widget', that can be used to determine
* the widget state of the KStylePrimitive in question.
*
* @see KStyle::KStylePrimitive
* @see QStyle::drawPrimitive
* @see QStyle::drawComplexControl
*/
virtual void drawKStylePrimitive( KStylePrimitive kpe,
QPainter* p,
const QWidget* widget,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption& = QStyleOption::Default ) const;
enum KStylePixelMetric {
KPM_MenuItemSeparatorHeight = 0x00000001,
KPM_MenuItemHMargin = 0x00000002,
KPM_MenuItemVMargin = 0x00000004,
KPM_MenuItemHFrame = 0x00000008,
KPM_MenuItemVFrame = 0x00000010,
KPM_MenuItemCheckMarkHMargin = 0x00000020,
KPM_MenuItemArrowHMargin = 0x00000040,
KPM_MenuItemTabSpacing = 0x00000080,
KPM_ListViewBranchThickness = 0x00000100
};
int kPixelMetric( KStylePixelMetric kpm, const QWidget* widget = 0 ) const;
// ---------------------------------------------------------------------------
void polish( QWidget* widget );
void unPolish( QWidget* widget );
void polishPopupMenu( QPopupMenu* );
void drawPrimitive( PrimitiveElement pe,
QPainter* p,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption& = QStyleOption::Default ) const;
void drawControl( ControlElement element,
QPainter* p,
const QWidget* widget,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption& = QStyleOption::Default ) const;
void drawComplexControl( ComplexControl control,
QPainter *p,
const QWidget* widget,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
SCFlags controls = SC_All,
SCFlags active = SC_None,
const QStyleOption& = QStyleOption::Default ) const;
SubControl querySubControl( ComplexControl control,
const QWidget* widget,
const QPoint &pos,
const QStyleOption& = QStyleOption::Default ) const;
QRect querySubControlMetrics( ComplexControl control,
const QWidget* widget,
SubControl sc,
const QStyleOption& = QStyleOption::Default ) const;
int pixelMetric( PixelMetric m,
const QWidget* widget = 0 ) const;
QRect subRect( SubRect r,
const QWidget* widget ) const;
QPixmap stylePixmap( StylePixmap stylepixmap,
const QWidget* widget = 0,
const QStyleOption& = QStyleOption::Default ) const;
int styleHint( StyleHint sh,
const QWidget* w = 0,
const QStyleOption &opt = QStyleOption::Default,
QStyleHintReturn* shr = 0 ) const;
protected:
bool eventFilter( QObject* object, QEvent* event );
private:
// Disable copy constructor and = operator
QtCKStyle( const QtCKStyle & );
QtCKStyle& operator=( const QtCKStyle & );
protected:
virtual void virtual_hook( int id, void* data );
private:
QtCKStylePrivate *d;
};
// vim: set noet ts=4 sw=4:
#endif

File diff suppressed because it is too large Load Diff

@ -2,7 +2,7 @@
#define __QTCURVE_H__
/*
QtCurve (C) Craig Drummond, 2003 - 2007 Craig.Drummond@lycos.co.uk
QtCurve (C) Craig Drummond, 2003 - 2010 craig.p.drummond@gmail.com
----
@ -51,31 +51,30 @@
*/
#include "config.h"
#ifdef QTC_QT_ONLY
#include "qtc_kstyle.h"
#else
#include <kdeversion.h>
#include <kstyle.h>
#endif
#include <qcolor.h>
#include <qpoint.h>
#include <qpalette.h>
#include <qpixmap.h>
#include <qcache.h>
#include <qvaluelist.h>
#include "common.h"
class QTimer;
class QSlider;
class HighContrastStyle : public KStyle
{
Q_OBJECT
public:
HighContrastStyle();
virtual ~HighContrastStyle() { }
const char * className();
};
#ifdef QTC_QT_ONLY
#define BASE_STYLE QtCKStyle
#else
#define BASE_STYLE KStyle
#endif
class QtCurveStyle : public HighContrastStyle
class QtCurveStyle : public BASE_STYLE
{
Q_OBJECT
@ -96,6 +95,8 @@ class QtCurveStyle : public HighContrastStyle
APP_TORA,
APP_KONTACT,
APP_OPERA,
APP_SYSTEMSETTINGS,
APP_KATE,
APP_OTHER
};
@ -112,14 +113,29 @@ class QtCurveStyle : public HighContrastStyle
HOVER_KICKER,
HOVER_SW_UP,
HOVER_SW_DOWN,
HOVER_CB_ARROW
HOVER_SW_ENTRY,
HOVER_CB_ARROW,
HOVER_CB_ENTRY
};
enum EntryColor
{
ENTRY_FOCUS,
ENTRY_MOUSE_OVER,
ENTRY_NONE
};
#ifdef QTC_STYLE_SUPPORT
QtCurveStyle(const QString &name=QString());
#else
QtCurveStyle();
#endif
virtual ~QtCurveStyle();
void polish(QApplication *app);
void polish(QPalette &pal);
QColorGroup setColorGroup(const QColorGroup &old, const QColorGroup &act, bool dis=false);
void polish(QWidget *widget);
void unPolish(QWidget *widget);
void drawLightBevel(QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags,
@ -129,12 +145,16 @@ class QtCurveStyle : public HighContrastStyle
void drawLightBevel(const QColor &bgnd, QPainter *p, const QRect &r, const QColorGroup &cg,
SFlags flags, int round, const QColor &fill, const QColor *custom=NULL,
bool doBorder=true, bool doCorners=true, EWidget w=WIDGET_OTHER) const;
void drawEtch(QPainter *p, const QRect &r, const QColorGroup &cg, bool top, bool bot, bool raised=false) const;
void drawGlow(QPainter *p, const QRect &r, const QColorGroup &cg, EWidget w, const QColor *cols=0) const;
void drawEtch(QPainter *p, const QRect &r, const QColorGroup &cg, bool raised=false, bool square=false) const;
void drawBorder(const QColor &bgnd, QPainter *p, const QRect &r, const QColorGroup &cg,
SFlags flags, int round, const QColor *custom=NULL, EWidget w=WIDGET_OTHER,
bool doCorners=true, EBorder borderProfile=BORDER_FLAT, bool blendBorderColors=true, int borderVal=QT_STD_BORDER) const;
bool doCorners=true, EBorder borderProfile=BORDER_FLAT, bool blendBorderColors=true, int borderVal=STD_BORDER) const;
void drawMdiIcon(QPainter *painter, const QColor &color, const QColor &shadow, const QRect &r, bool sunken, int margin,
SubControl button) const;
void drawWindowIcon(QPainter *painter, const QColor &color, const QRect &r, bool sunken, int margin, SubControl button) const;
void drawEntryField(QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags,
bool highlight, int round, EWidget=WIDGET_OTHER) const;
EntryColor coloration, int round, EWidget=WIDGET_ENTRY) const;
void drawArrow(QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags,
QStyle::PrimitiveElement pe, bool small=false, bool checkActive=false) const;
void drawPrimitive(PrimitiveElement, QPainter *, const QRect &, const QColorGroup &,
@ -159,32 +179,40 @@ class QtCurveStyle : public HighContrastStyle
const QStyleOption & = QStyleOption::Default) const;
int styleHint(StyleHint, const QWidget *widget= 0, const QStyleOption & = QStyleOption::Default,
QStyleHintReturn *returnData= 0) const;
void drawItem(QPainter *p, const QRect &r, int flags, const QColorGroup &cg, bool enabled,
const QPixmap *pixmap, const QString &text, int len=-1, const QColor *penColor=0) const;
protected:
bool appIsNotEmbedded(QDialog *dlg);
bool eventFilter(QObject *object, QEvent *event);
void drawMenuItem(QPainter *p, const QRect &r, const QColorGroup &cg,
void drawMenuItem(QPainter *p, const QRect &r, int flags, const QColorGroup &cg,
bool mbi, int round, const QColor &bgnd, const QColor *cols) const;
void drawProgress(QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags, int round,
const QWidget *widget) const;
void drawBevelGradient(const QColor &base, bool increase, QPainter *p, QRect const &r,
bool horiz, double shadeTop, double shadeBot, bool sel, EAppearance bevApp,
EWidget w=WIDGET_OTHER) const;
void drawGradient(const QColor &top, const QColor &bot, bool increase, QPainter *p,
const QRect &r, bool horiz=true) const;
void drawBevelGradient(const QColor &base, QPainter *p, QRect const &r,
bool horiz, bool sel, EAppearance bevApp, EWidget w=WIDGET_OTHER) const;
void drawBevelGradientReal(const QColor &base, QPainter *p, QRect const &r,
bool horiz, bool sel, EAppearance bevApp, EWidget w=WIDGET_OTHER) const;
void drawGradient(const QColor &top, const QColor &bot, QPainter *p, const QRect &r, bool horiz=true) const;
void drawSbSliderHandle(QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags, bool slider=false) const;
void drawSliderHandle(QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags, QSlider *slider, bool tb=false) const;
void drawSliderGroove(QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags,
const QWidget *widget) const;
void drawMenuOrToolBarBackground(QPainter *p, const QRect &r, const QColorGroup &cg, bool menu=true,
bool horiz=true) const;
void drawMenuOrToolBarBackground(QPainter *p, const QRect &r, const QColorGroup &cg, bool menu=true, bool horiz=true) const;
void drawHandleMarkers(QPainter *p, const QRect &r, SFlags flags, bool tb, ELine handles) const;
void drawHighlight(QPainter *p, const QRect &r, const QColorGroup &cg, bool horiz, bool inc) const;
private:
static QColor shadowColor(const QColor col)
{
return qGray(col.rgb()) < 100 ? QColor(255, 255, 255) : QColor(0, 0, 0);
}
void shadeColors(const QColor &base, QColor *vals) const;
const QColor * buttonColors(const QColorGroup &cg) const;
const QColor * checkRadioColors(const QColorGroup &cg, SFlags flags) const;
const QColor * sliderColors(/*const QColorGroup &cg, */SFlags flags) const;
const QColor * backgroundColors(const QColor &c) const;
const QColor * backgroundColors(const QColorGroup &cg) const
@ -192,15 +220,28 @@ class QtCurveStyle : public HighContrastStyle
const QColor * borderColors(SFlags flags, const QColor *use) const;
const QColor * getSidebarButtons() const;
void setMenuColors(const QColorGroup &cg);
const QColor * menuColors(const QColorGroup &cg, bool active) const;
void setDecorationColors(bool init=false);
const QColor * getMdiColors(const QColorGroup &cg, bool active) const;
#ifdef SET_MDI_WINDOW_BUTTON_POSITIONS
void readMdiPositions() const;
#endif
bool redrawHoverWidget(const QPoint &pos);
const QColor & getFill(SFlags flags, const QColor *use) const;
const QColor & getFill(SFlags flags, const QColor *use, bool cr=false, bool darker=false) const;
const QColor & getListViewFill(SFlags flags, const QColor *use) const;
const QColor & getTabFill(bool current, bool highlight, const QColor *use) const;
const QColor & menuStripeCol() const;
const QColor & checkRadioCol(SFlags flags, const QColorGroup &cg) const;
QColor shade(const QColor &a, float k) const;
void shade(const color &ca, color *cb, double k) const;
void drawDot(QPainter *p, const QRect &r, const QColor *cols) const;
QPixmap * getPixelPixmap(const QColor col) const;
QPixmap * getPixmap(const QColor col, EPixmap pix, double shade=1.0) const;
QPixmap * createStripePixmap(const QColor &col, bool forWindow) const;
void setSbType();
bool isFormWidget(const QWidget *w) const { return itsKhtmlWidgets.contains(w); }
void resetHover();
bool isWindowDragWidget(QObject *o, const QPoint &pos=QPoint());
private slots:
@ -208,25 +249,35 @@ class QtCurveStyle : public HighContrastStyle
void progressBarDestroyed(QObject *bar);
void sliderThumbMoved(int val);
void khtmlWidgetDestroyed(QObject *o);
void hoverWidgetDestroyed(QObject *o);
private:
Options opts;
QColor itsMenuitemCols[TOTAL_SHADES+1],
mutable Options opts;
QColor itsHighlightCols[TOTAL_SHADES+1],
itsBackgroundCols[TOTAL_SHADES+1],
itsMenubarCols[TOTAL_SHADES+1],
itsFocusCols[TOTAL_SHADES+1],
*itsSliderCols,
*itsDefBtnCols,
*itsMouseOverCols,
*itsComboBtnCols,
*itsCheckRadioSelCols,
*itsSortedLvColors,
*itsProgressCols,
itsButtonCols[TOTAL_SHADES+1],
itsLighterPopupMenuBgndCol,
itsCheckRadioCol;
mutable QColor *itsSidebarButtonsCols;
mutable QColor *itsActiveMdiColors;
mutable QColor *itsMdiColors;
mutable QColor itsActiveMdiTextColor;
mutable QColor itsMdiTextColor;
mutable QColor itsColoredButtonCols[TOTAL_SHADES+1];
mutable QColor itsColoredBackgroundCols[TOTAL_SHADES+1];
EApp itsThemedApp;
mutable QCache<QPixmap> itsPixmapCache;
#if KDE_VERSION >= 0x30200
#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
bool itsIsTransKicker;
#endif
EHover itsHover;
@ -241,6 +292,9 @@ class QtCurveStyle : public HighContrastStyle
QTimer *itsAnimationTimer;
mutable bool itsActive,
itsIsSpecialHover;
mutable QValueList<int> itsMdiButtons[2]; // 0=left, 1=right
QWidget *itsDragWidget;
bool itsDragWidgetHadMouseTracking;
};
#endif

@ -1,6 +1,6 @@
[Misc]
Name=QtCurve
Comment=Clean and elegant style
Comment=Highly configurable style
ConfigPage=kstyle_qtcurve_config
[KDE]
WidgetStyle=QtCurve

@ -0,0 +1,34 @@
[Misc]
Name=Agua
[KDE]
WidgetStyle=qtc_agua
[Settings]
appearance=agua
bgndImage=true
comboBtn=selected
crColor=true
customShades=0
defBtnIndicator=tint
fixParentlessDialogs=false
glowProgress=true
gtkComboMenus=true
highlightFactor=7
lvAppearance=agua
menuDelay=225
menuitemAppearance=harsh
progressAppearance=agua
round=max
roundAllTabs=false
shadeSliders=selected
sliderAppearance=agua
sliderStyle=triangular
sliderThumbs=none
stdBtnSizes=true
stripedProgress=diagonal
sunkenAppearance=inverted
titlebarBorder=false
titlebarButtonAppearance=agua
titlebarButtonColors=#C40000,#DCC864,#5ACC80,#4190C5,#8888CC,#D6D5D1,#D6D5D1,#D6D5D1,#D6D5D1
titlebarButtons=85
useHighlightForMenu=true
version=1.0.0

@ -0,0 +1,165 @@
[InactiveShadows]
Size=35
[KWin]
BorderSize=0
CustomShadows=true
Grouping=false
OpaqueBorder=false
RoundBottom=false
TitleBarPad=1
[Settings]
activeTabAppearance=soft
animatedProgress=false
appearance=agua
bgndAppearance=flat
bgndGrad=horiz
bgndImage=none
bgndOpacity=100
boldProgress=false
borderInactiveTab=false
borderMenuitems=false
borderProgress=false
borderSbarGroove=false
borderSelection=false
borderTab=true
buttonEffect=shadow
centerTabText=false
colorMenubarMouseOver=true
colorSelTab=0
colorSliderMouseOver=false
coloredMouseOver=glow
coloredTbarMo=false
comboBtn=selected
comboSplitter=false
crButton=true
crColor=selected
crHighlight=3
crSize=15
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
customMenuTextColor=false
customShades=0
customgradient1=light,0,1.2,0.45,1,1,1
customgradient2=3d,0,0.75,0.3,0.9,1,1.1
customgradient3=none,0,1.1,0.99,0.94,1,0.75
darkerBorders=false
defBtnIndicator=tint
dlgOpacity=100
doubleGtkComboArrow=true
drawStatusBarFrames=false
dwtAppearance=customgradient1
dwtSettings=33
embolden=false
etchEntry=false
expanderHighlight=3
fadeLines=true
fillProgress=true
fillSlider=true
fixParentlessDialogs=false
flatSbarButtons=true
focus=glow
forceAlternateLvCols=true
gbFactor=-3
gbLabel=9
glowProgress=none
grooveAppearance=customgradient2
groupBox=faded
gtkButtonOrder=false
gtkComboMenus=true
gtkScrollViews=false
handles=1dot
highlightFactor=7
highlightScrollViews=false
highlightTab=false
inactiveTitlebarAppearance=customgradient3
invertBotTab=true
lighterPopupMenuBgnd=2
lvAppearance=agua
lvButton=false
lvLines=none
mapKdeIcons=true
menuBgndAppearance=flat
menuBgndGrad=horiz
menuBgndImage=none
menuBgndOpacity=100
menuDelay=225
menuIcons=true
menuStripe=none
menuStripeAppearance=darkinverted
menubarAppearance=customgradient3
menubarApps=VirtualBox,smplayer,amarok,arora,kcalc,kaffeine
menubarHiding=1
menubarMouseOver=true
menuitemAppearance=harsh
noBgndGradientApps=
noBgndImageApps=
noBgndOpacityApps=dragon,smplayer,inkscape,kaffeine,kscreenlocker
noDlgFixApps=plasma-netbook,plasma,plasma-desktop,kate
noMenuBgndOpacityApps=inkscape
noMenuStripeApps=soffice.bin,gtk
passwordChar=9679
popupBorder=true
progressAppearance=agua
progressColor=origselected
progressGrooveAppearance=agua
progressGrooveColor=background
reorderGtkButtons=true
round=max
roundAllTabs=true
roundMbTopOnly=true
sbarBgndAppearance=gradient
scrollbarType=kde
selectionAppearance=harsh
shadeCheckRadio=none
shadeMenubarOnlyWhenActive=false
shadeMenubars=wborder
shadePopupMenu=false
shadeSliders=selected
shading=hsl
sliderAppearance=agua
sliderFill=true
sliderStyle=circular
sliderThumbs=none
sliderWidth=15
smallRadio=true
sortedLv=none
splitterHighlight=3
splitters=1dot
square=31
statusbarApps=kde
statusbarHiding=1
stdBtnSizes=true
stdSidebarButtons=false
stripedProgress=fade
stripedSbar=true
sunkenAppearance=inverted
tabAppearance=soft
tabBgnd=0
tabMouseOver=glow
thinSbarGroove=false
thinnerBtns=true
thinnerMenuItems=false
titlebarAlignment=center-full
titlebarAppearance=customgradient3
titlebarButtonAppearance=agua
titlebarButtonColors=#ED3D11,#EDE651,#4AD543,#5982F2,#9595E0,#D6D5D1,#D6D5D1,#D6D5D1,#D6D5D1
titlebarButtons=3093
titlebarEffect=etch
titlebarIcon=title
toolbarAppearance=flat
toolbarBorders=none
toolbarSeparators=sunken
toolbarTabs=false
unifyCombo=true
unifySpin=true
unifySpinBtns=false
useHighlightForMenu=true
useQtFileDialogApps=googleearth-bin
vArrows=true
version=1.6.0
windowBorder=1
windowDrag=1
xCheck=false
xbar=false

@ -1,4 +1,4 @@
install(FILES Clear.qtcurve Dull_Glass.qtcurve Shiny_Glass.qtcurve Inverted.qtcurve Plain.qtcurve Glass.qtcurve
Human.qtcurve Plastic.qtcurve Murrine.qtcurve Curve.qtcurve Clean.qtcurve DESTINATION ${DATA_INSTALL_DIR}/QtCurve)
install(FILES Agua.qtcurve Agua_II.qtcurve Curve.qtcurve Flat.qtcurve Human.qtcurve Inverted.qtcurve
Klearlooks.qtcurve Milk.qtcurve Murrine.qtcurve Ozone.qtcurve Plastic.qtcurve Silk.qtcurve
DESTINATION ${DATA_INSTALL_DIR}/QtCurve)
install(FILES qtc_klearlooks.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes)

@ -1,9 +1,12 @@
[Settings]
activeTabAppearance=raised
animatedProgress=false
appearance=raised
borderMenuitems=true
buttonEffect=none
coloredMouseOver=none
comboSplitter=true
crHighlight=true
customCheckRadioColor=#000000
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
@ -14,23 +17,31 @@ darkerBorders=true
defBtnIndicator=fontcolor
drawStatusBarFrames=false
embolden=false
fadeLines=false
fillProgress=true
fillSlider=false
fixParentlessDialogs=false
focus=standard
framelessGroupBoxes=true
gradientPbGroove=false
groupBoxLine=false
gtkScrollViews=false
gtkComboMenus=false
gtkButtonOrder=false
handles=sunken
highlightFactor=8
highlightScrollViews=false
highlightTab=false
lighterPopupMenuBgnd=false
lvAppearance=raised
lvLines=false
mapKdeIcons=true
menuDelay=225
menubarAppearance=flat
menubarMouseOver=false
menuitemAppearance=inverted
progressAppearance=inverted
progressGrooveAppearance=flat
progressGrooveColor=background
round=none
roundMbTopOnly=true
scrollbarType=windows
@ -42,7 +53,6 @@ sliderAppearance=raised
sliderStyle=plain
sliderThumbs=sunken
splitters=sunken
stdFocus=true
stdSidebarButtons=false
stripedProgress=false
tabAppearance=raised
@ -51,3 +61,9 @@ toolbarAppearance=flat
toolbarBorders=dark-all
toolbarSeparators=sunken
vArrows=true
menuStripe=false
menuStripeAppearance=flat
titlebarAppearance=flat
selectionAppearance=flat
squareScrollViews=true
sunkenScrollViews=false

@ -0,0 +1,69 @@
[Settings]
activeTabAppearance=flat
animatedProgress=false
appearance=flat
borderMenuitems=true
buttonEffect=shadow
coloredMouseOver=none
comboSplitter=true
crHighlight=true
customCheckRadioColor=#000000
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
customMenuTextColor=false
customMenubarsColor=#000000
customSlidersColor=#000000
darkerBorders=false
defBtnIndicator=fontcolor
drawStatusBarFrames=false
embolden=true
fadeLines=false
fillProgress=true
fillSlider=true
fixParentlessDialogs=false
focus=standard
framelessGroupBoxes=false
groupBoxLine=false
gtkScrollViews=false
gtkComboMenus=false
gtkButtonOrder=false
handles=sunken
highlightFactor=5
highlightScrollViews=false
highlightTab=false
lighterPopupMenuBgnd=false
lvAppearance=flat
lvLines=false
mapKdeIcons=true
menuDelay=225
menubarAppearance=flat
menubarMouseOver=true
menuitemAppearance=flat
progressAppearance=flat
progressGrooveAppearance=flat
progressGrooveColor=base
round=full
roundMbTopOnly=true
scrollbarType=kde
shadeCheckRadio=none
shadeMenubarOnlyWhenActive=false
shadeMenubars=darken
shadeSliders=none
sliderAppearance=flat
sliderStyle=plain
sliderThumbs=sunken
splitters=dashes
stdSidebarButtons=false
stripedProgress=false
tabAppearance=flat
thinnerMenuItems=false
toolbarAppearance=flat
toolbarBorders=light
toolbarSeparators=sunken
vArrows=false
menuStripe=false
menuStripeAppearance=flat
titlebarAppearance=flat
selectionAppearance=flat
squareScrollViews=false
sunkenScrollViews=false

@ -1,9 +1,11 @@
[Settings]
animatedProgress=true
animatedProgress=false
appearance=dullglass
borderMenuitems=true
borderMenuitems=false
buttonEffect=shadow
coloredMouseOver=plastik
coloredMouseOver=glow
comboSplitter=true
crHighlight=false
customCheckRadioColor=#000000
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
@ -14,23 +16,31 @@ darkerBorders=true
defBtnIndicator=colored
drawStatusBarFrames=false
embolden=false
fadeLines=false
fillProgress=true
fillSlider=true
fixParentlessDialogs=false
focus=standard
framelessGroupBoxes=true
gradientPbGroove=true
groupBoxLine=false
gtkScrollViews=false
gtkComboMenus=false
gtkButtonOrder=false
handles=dots
highlightFactor=7
highlightScrollViews=false
highlightTab=true
lighterPopupMenuBgnd=true
lvAppearance=bevelled
lvLines=false
mapKdeIcons=true
menuDelay=225
menubarAppearance=gradient
menubarMouseOver=true
menuitemAppearance=gradient
progressAppearance=shinyglass
progressGrooveAppearance=shinyglass
progressGrooveColor=base
round=full
roundMbTopOnly=true
scrollbarType=windows
@ -39,10 +49,9 @@ shadeMenubarOnlyWhenActive=false
shadeMenubars=darken
shadeSliders=none
sliderAppearance=gradient
sliderStyle=round
sliderStyle=plain
sliderThumbs=dots
splitters=dots
stdFocus=true
stdSidebarButtons=false
stripedProgress=true
tabAppearance=gradient
@ -51,4 +60,9 @@ toolbarAppearance=flat
toolbarBorders=light
toolbarSeparators=sunken
vArrows=false
menuStripe=false
menuStripeAppearance=flat
titlebarAppearance=gradient
selectionAppearance=gradient
squareScrollViews=true
sunkenScrollViews=false

@ -1,9 +1,11 @@
[Settings]
animatedProgress=true
animatedProgress=false
appearance=inverted
borderMenuitems=true
buttonEffect=shadow
coloredMouseOver=plastik
comboSplitter=false
crHighlight=false
customCheckRadioColor=#000000
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
@ -14,23 +16,31 @@ darkerBorders=false
defBtnIndicator=colored
drawStatusBarFrames=false
embolden=false
fadeLines=false
fillProgress=true
fillSlider=true
fixParentlessDialogs=false
focus=background
framelessGroupBoxes=true
gradientPbGroove=true
groupBoxLine=false
gtkScrollViews=false
gtkComboMenus=false
gtkButtonOrder=false
handles=dots
highlightFactor=5
highlightScrollViews=true
highlightTab=true
lighterPopupMenuBgnd=true
lvAppearance=inverted
lvLines=false
mapKdeIcons=true
menuDelay=225
menubarAppearance=inverted
menubarMouseOver=true
menuitemAppearance=inverted
progressAppearance=inverted
progressGrooveAppearance=inverted
progressGrooveColor=base
round=full
roundMbTopOnly=true
scrollbarType=kde
@ -42,7 +52,6 @@ sliderAppearance=inverted
sliderStyle=round
sliderThumbs=dots
splitters=dots
stdFocus=false
stdSidebarButtons=false
stripedProgress=true
tabAppearance=gradient
@ -51,4 +60,9 @@ toolbarAppearance=inverted
toolbarBorders=none
toolbarSeparators=dots
vArrows=false
menuStripe=true
menuStripeAppearance=inverted
titlebarAppearance=inverted
selectionAppearance=inverted
squareScrollViews=false
sunkenScrollViews=true

@ -0,0 +1,74 @@
animatedProgress=false
appearance=splitgradient
borderMenuitems=true
buttonEffect=shadow
coloredMouseOver=none
colorSelTab=true
colorTitlebarOnly=true
comboSplitter=true
crHighlight=false
customCheckRadioColor=#000000
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
customMenuTextColor=false
customMenubarsColor=#000000
customSlidersColor=#000000
darkerBorders=false
defBtnIndicator=glow
drawStatusBarFrames=false
embolden=false
fadeLines=true
fillProgress=true
fillSlider=true
fixParentlessDialogs=false
focus=filled
framelessGroupBoxes=true
groupBoxLine=false
gtkScrollViews=true
gtkComboMenus=true
gtkButtonOrder=false
handles=dots
highlightFactor=7
highlightScrollViews=false
highlightTab=false
lighterPopupMenuBgnd=15
lvAppearance=splitgradient
lvLines=false
mapKdeIcons=true
menuDelay=225
menubarAppearance=flat
menubarMouseOver=true
menuitemAppearance=splitgradient
progressAppearance=splitgradient
progressGrooveAppearance=flat
progressGrooveColor=dark
round=full
roundMbTopOnly=true
scrollbarType=windows
shadeCheckRadio=none
shadeMenubarOnlyWhenActive=false
shadeMenubars=darken
shadeSliders=selected
sliderStyle=plain
sliderAppearance=splitgradient
sliderThumbs=flat
splitters=dashes
stdFocus=true
stdSidebarButtons=false
stripedProgress=diagonal
tabAppearance=gradient
thinnerMenuItems=false
toolbarAppearance=splitgradient
toolbarBorders=light
toolbarSeparators=sunken
vArrows=true
windowApperance=gradient
menuStripe=false
menuStripeAppearance=flat
titlebarAppearance=gradient
selectionAppearance=gradient
squareScrollViews=true
sunkenAppearance=splitgradient
sunkenScrollViews=false
unifySpinBtns=true
thinnerBtns=true

@ -0,0 +1,69 @@
[Settings]
appearance=customgradient4
boldProgress=false
borderProgress=false
borderSbarGroove=false
comboSplitter=true
crColor=selected
customShades=0
customgradient1=light,0,1.2,1,1
customgradient2=3d,0,0.75,0.3,0.9,1,1.1
customgradient3=none,0,1.1,0.99,0.94,1,0.75
customgradient4=none,0,1.1,1,0.9
customgradient5=none,0,1.25,1,0.75
defBtnIndicator=tint
dwtSettings=40
fixParentlessDialogs=false
forceAlternateLvCols=true
grooveAppearance=customgradient2
gtkComboMenus=true
gtkScrollViews=false
highlightFactor=7
inactiveTitlebarAppearance=customgradient3
lvAppearance=bevelled
menuDelay=225
menubarAppearance=customgradient3
menubarHiding=3
menuitemAppearance=customgradient5
progressAppearance=customgradient5
progressColor=selected
progressGrooveAppearance=customgradient4
progressGrooveColor=background
reorderGtkButtons=true
round=max
sbarBgndAppearance=gradient
shadeMenubars=wborder
shadeSliders=selected
sliderAppearance=customgradient4
sliderStyle=circular
sliderThumbs=none
square=31
statusbarHiding=3
stdBtnSizes=true
sunkenAppearance=inverted
thinSbarGroove=false
titlebarAppearance=customgradient3
titlebarButtonAppearance=customgradient4
titlebarButtonColors=#BA0D0D,#D6BA48,#40BA3A,#444FC4,#8282C3,#D6D5D1,#D6D5D1,#D6D5D1,#D6D5D1
titlebarButtons=3605
titlebarEffect=etch
useHighlightForMenu=true
version=1.5.0
windowBorder=1
windowDrag=3
[KWin]
BorderSize=0
CloseOnMenuDoubleClick=true
ColorTitleOnly=true
ColoredShadow=false
CustomShadows=true
DrawBottom=true
Grouping=false
OpaqueBorder=false
RoundBottom=false
ShowResizeGrip=true
TitleBarPad=1
[InactiveShadows]
Size=35

@ -1,9 +1,11 @@
[Settings]
animatedProgress=true
animatedProgress=false
appearance=dullglass
borderMenuitems=true
buttonEffect=etch
coloredMouseOver=colored
comboSplitter=true
crHighlight=false
customCheckRadioColor=#000000
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
@ -14,23 +16,31 @@ darkerBorders=false
defBtnIndicator=fontcolor
drawStatusBarFrames=false
embolden=false
fadeLines=false
fillProgress=true
fillSlider=true
fixParentlessDialogs=false
focus=standard
framelessGroupBoxes=true
gradientPbGroove=false
groupBoxLine=false
gtkScrollViews=false
gtkComboMenus=false
gtkButtonOrder=false
handles=sunken
highlightFactor=5
highlightScrollViews=false
highlightTab=true
lighterPopupMenuBgnd=true
lvAppearance=dullglass
lvLines=false
mapKdeIcons=true
menuDelay=225
menubarAppearance=dullglass
menubarMouseOver=true
menuitemAppearance=dullglass
progressAppearance=dullglass
progressGrooveAppearance=dullglass
progressGrooveColor=base
round=slight
roundMbTopOnly=false
scrollbarType=windows
@ -42,7 +52,6 @@ sliderAppearance=dullglass
sliderStyle=plain
sliderThumbs=sunken
splitters=dashes
stdFocus=true
stdSidebarButtons=false
stripedProgress=true
tabAppearance=gradient
@ -51,4 +60,9 @@ toolbarAppearance=flat
toolbarBorders=light
toolbarSeparators=sunken
vArrows=false
menuStripe=false
menuStripeAppearance=flat
titlebarAppearance=dullglass
selectionAppearance=dullglass
squareScrollViews=true
sunkenScrollViews=false

@ -0,0 +1,170 @@
[InactiveShadows]
Size=35
[KWin]
BorderSize=3
CustomShadows=true
EdgePad=0
Grouping=false
OpaqueBorder=false
OuterBorder=2
InnerBorder=0
RoundBottom=true
TitleBarPad=0
[Settings]
customAlphas=0.4,0.1
activeTabAppearance=soft
animatedProgress=false
appearance=customgradient5
bgndAppearance=customgradient4
bgndGrad=horiz
bgndImage=none
bgndOpacity=100
boldProgress=false
borderInactiveTab=true
borderMenuitems=false
borderProgress=true
borderSbarGroove=true
borderSelection=false
borderTab=true
buttonEffect=shadow
centerTabText=true
colorMenubarMouseOver=true
colorSelTab=0
colorSliderMouseOver=false
coloredMouseOver=glow
coloredTbarMo=false
comboBtn=none
comboSplitter=false
crButton=true
crColor=none
crHighlight=0
crSize=15
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
customMenuTextColor=false
customShades=1.16,1.07,0.9,0.78,0.84,0.75
customgradient1=3d,0,1.2,0.5,1,1,1
customgradient2=3d,0,0.9,0.5,1,1,1
customgradient3=none,0,1.12,1,1.15
customgradient4=shine,0,1.05,1,0.92
customgradient5=light,0,1.04,1,0.92
darkerBorders=false
defBtnIndicator=glow
dlgOpacity=100
doubleGtkComboArrow=true
drawStatusBarFrames=false
dwtAppearance=flat
dwtSettings=0
embolden=false
etchEntry=false
expanderHighlight=3
fadeLines=true
fillProgress=true
fillSlider=false
fixParentlessDialogs=false
flatSbarButtons=true
focus=glow
forceAlternateLvCols=false
gbFactor=-3
gbLabel=9
glowProgress=middle
grooveAppearance=inverted
groupBox=faded
gtkButtonOrder=false
gtkComboMenus=false
gtkScrollViews=true
handles=sunken
highlightFactor=3
highlightScrollViews=true
highlightTab=false
inactiveTitlebarAppearance=none
invertBotTab=true
lighterPopupMenuBgnd=0
lvAppearance=bevelled
lvButton=false
lvLines=old
mapKdeIcons=true
menuBgndAppearance=harsh
menuBgndGrad=horiz
menuBgndImage=none
menuBgndOpacity=100
menuDelay=225
menuIcons=true
menuStripe=none
menuStripeAppearance=darkinverted
menubarAppearance=flat
menubarApps=VirtualBox,smplayer,amarok,arora,kcalc,kaffeine
menubarHiding=0
menubarMouseOver=true
menuitemAppearance=fade
noBgndGradientApps=
noBgndImageApps=
noBgndOpacityApps=dragon,smplayer,inkscape,totem,kaffeine,kscreenlocker,sonata
noDlgFixApps=plasma-netbook,plasma,plasma-desktop,kate
noMenuBgndOpacityApps=inkscape,totem,sonata
noMenuStripeApps=soffice.bin,gtk
passwordChar=9679
popupBorder=true
progressAppearance=dullglass
progressColor=origselected
progressGrooveAppearance=inverted
progressGrooveColor=dark
reorderGtkButtons=false
round=extra
roundAllTabs=false
roundMbTopOnly=false
sbarBgndAppearance=flat
scrollbarType=kde
selectionAppearance=harsh
shadeCheckRadio=none
shadeMenubarOnlyWhenActive=false
shadeMenubars=none
shadePopupMenu=false
shadeSliders=none
shading=hsl
sliderAppearance=soft
sliderFill=true
sliderStyle=r-plain
sliderThumbs=none
sliderWidth=15
smallRadio=true
sortedLv=none
splitterHighlight=0
splitters=flat
square=0
statusbarApps=kde
statusbarHiding=0
stdBtnSizes=false
stdSidebarButtons=false
stripedProgress=none
stripedSbar=false
sunkenAppearance=customgradient3
tabAppearance=soft
tabBgnd=0
tabMouseOver=glow
thinSbarGroove=false
thinnerBtns=true
thinnerMenuItems=false
titlebarAlignment=center-full
titlebarAppearance=none
titlebarButtonAppearance=gradient
titlebarButtons=2117
titlebarEffect=shadow
titlebarIcon=title
toolbarAppearance=flat
toolbarBorders=none
toolbarSeparators=sunken
toolbarTabs=false
unifyCombo=true
unifySpin=true
unifySpinBtns=false
useHighlightForMenu=false
useQtFileDialogApps=googleearth-bin
vArrows=true
version=1.6.1
windowBorder=1
windowDrag=3
xCheck=false
xbar=false

@ -1,54 +1,160 @@
[KWin]
BorderSize=3
Grouping=false
OpaqueBorder=false
OuterBorder=true
TitleBarPad=1
[Settings]
animatedProgress=true
activeTabAppearance=flat
animatedProgress=false
appearance=gradient
borderMenuitems=true
bgndAppearance=flat
bgndGrad=horiz
bgndImage=none
bgndOpacity=100
boldProgress=true
borderInactiveTab=false
borderMenuitems=false
borderProgress=true
borderSbarGroove=true
borderSelection=false
borderTab=false
buttonEffect=none
centerTabText=false
colorMenubarMouseOver=false
colorSelTab=0
colorSliderMouseOver=false
coloredMouseOver=plastik
customCheckRadioColor=#000000
coloredTbarMo=false
comboBtn=none
comboSplitter=true
crButton=false
crColor=none
crHighlight=0
crSize=13
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
customMenuTextColor=false
customMenubarsColor=#000000
customSlidersColor=#000000
customShades=0
customgradient1=3d,0,1.2,0.5,1,1,1
customgradient2=3d,0,0.9,0.5,1,1,1
darkerBorders=false
defBtnIndicator=colored
defBtnIndicator=fontcolor
dlgOpacity=100
doubleGtkComboArrow=false
drawStatusBarFrames=false
dwtAppearance=flat
dwtSettings=0
embolden=false
fillSlider=true
framelessGroupBoxes=false
gradientPbGroove=true
gtkScrollViews=false
gtkComboMenus=false
etchEntry=true
expanderHighlight=3
fadeLines=false
fillProgress=false
fillSlider=false
fixParentlessDialogs=false
flatSbarButtons=false
focus=standard
forceAlternateLvCols=false
gbFactor=0
gbLabel=0
glowProgress=none
grooveAppearance=inverted
groupBox=plain
gtkButtonOrder=false
gtkComboMenus=false
gtkScrollViews=false
handles=dots
highlightFactor=-2
highlightTab=true
lighterPopupMenuBgnd=true
highlightScrollViews=false
highlightTab=false
inactiveTitlebarAppearance=gradient
invertBotTab=true
lighterPopupMenuBgnd=2
lvAppearance=gradient
lvLines=false
lvButton=false
lvLines=none
mapKdeIcons=true
menuBgndAppearance=flat
menuBgndGrad=horiz
menuBgndImage=none
menuBgndOpacity=100
menuDelay=225
menuIcons=true
menuStripe=none
menuStripeAppearance=flat
menubarAppearance=flat
menubarApps=VirtualBox,smplayer,amarok,arora,kcalc,kaffeine
menubarHiding=0
menubarMouseOver=true
menuitemAppearance=gradient
noBgndGradientApps=
noBgndImageApps=
noBgndOpacityApps=dragon,smplayer,inkscape,kaffeine,kscreenlocker
noDlgFixApps=plasma-netbook,plasma,plasma-desktop,kate
noMenuBgndOpacityApps=inkscape
noMenuStripeApps=soffice.bin,gtk
passwordChar=9679
popupBorder=true
progressAppearance=flat
progressColor=origselected
progressGrooveAppearance=flat
progressGrooveColor=base
reorderGtkButtons=false
round=full
roundAllTabs=false
roundMbTopOnly=false
scrollbarType=windows
sbarBgndAppearance=flat
scrollbarType=kde
selectionAppearance=flat
shadeCheckRadio=none
shadeMenubarOnlyWhenActive=false
shadeMenubars=none
shadePopupMenu=false
shadeSliders=none
shading=hsl
sliderAppearance=gradient
sliderFill=true
sliderStyle=triangular
sliderThumbs=dots
sliderWidth=15
smallRadio=false
sortedLv=none
splitterHighlight=3
splitters=dots
stdFocus=true
square=256
statusbarApps=kde
statusbarHiding=0
stdBtnSizes=false
stdSidebarButtons=false
stripedProgress=true
stripedProgress=plain
stripedSbar=false
sunkenAppearance=inverted
tabAppearance=gradient
tabBgnd=0
tabMouseOver=top
thinSbarGroove=false
thinnerBtns=false
thinnerMenuItems=false
titlebarAlignment=left
titlebarAppearance=gradient
titlebarButtonAppearance=gradient
titlebarButtons=2
titlebarEffect=shadow
titlebarIcon=menu
toolbarAppearance=flat
toolbarBorders=light-all
toolbarSeparators=sunken
toolbarTabs=false
tooltipAppearance=flat
unifyCombo=false
unifySpin=false
unifySpinBtns=false
useHighlightForMenu=true
useQtFileDialogApps=googleearth-bin
vArrows=false
version=1.6.0
windowBorder=4
windowDrag=0
xCheck=true
xbar=false

@ -0,0 +1,89 @@
[Misc]
Name=Silk
Comment=QtCurve derived style.
[KDE]
WidgetStyle=qtc_silk
[Settings]
activeTabAppearance=flat
animatedProgress=false
appearance=customgradient2
borderMenuitems=false
buttonEffect=shadow
colorSelTab=false
coloredMouseOver=glow
comboSplitter=false
crButton=true
crHighlight=false
customCheckRadioColor=#000000
customMenuNormTextColor=#000000
customMenuSelTextColor=#000000
customMenuTextColor=false
customMenubarsColor=#000000
customShades=1.16,1.07,0.9,0.78,0.84,0.75
customSlidersColor=#000000
customShadesX=1.1,1.1,1.1,1.1,1.1,1.1
customgradient1=false,0,1.05,0.49,1,0.5,0.95,1,1
customgradient2=false,0,1.05,1,1
customgradient3=false,0.85,1,1,0.92
customgradient4=false,0,1,1,0.98
customgradient5=false,0,1.2,0.5,1,1,1
customgradient6=false,0,0.9,0.5,1,1,1
darkerBorders=false
defBtnIndicator=glow
drawStatusBarFrames=false
embolden=false
fadeLines=true
fixParentlessDialogs=false
flatSbarButtons=true
focus=filled
framelessGroupBoxes=true
groupBoxLine=true
gtkButtonOrder=false
gtkComboMenus=false
gtkScrollViews=false
handles=sunken
highlightFactor=0
highlightScrollViews=false
highlightTab=false
inactiveTitlebarAppearance=customgradient6
lighterPopupMenuBgnd=2
lvAppearance=customgradient3
lvLines=false
mapKdeIcons=true
menuDelay=225
menuStripe=false
menuStripeAppearance=customgradient2
menubarAppearance=customgradient4
menubarMouseOver=true
menuitemAppearance=fade
progressAppearance=customgradient1
progressGrooveAppearance=inverted
progressGrooveColor=dark
round=full
roundMbTopOnly=true
scrollbarType=kde
selectionAppearance=gradient
shadeCheckRadio=none
shadeMenubarOnlyWhenActive=false
shadeMenubars=none
shadeSliders=none
shading=hsl
sliderAppearance=customgradient2
sliderStyle=plain
sliderThumbs=lines
splitters=flat
squareScrollViews=false
stdSidebarButtons=false
stripedProgress=none
sunkengradientX=false,0,0.5,0.5,0.1,1,0.9
sunkenScrollViews=true
tabAppearance=flat
thinnerMenuItems=false
titlebarAppearance=customgradient5
titlebarButtonAppearance=customgradient2
toolbarAppearance=flat
toolbarBorders=none
toolbarSeparators=sunken
useHighlightForMenu=false
vArrows=true
xCheck=false
Loading…
Cancel
Save