Added Lipstik theme engine

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-style-lipstik@1089389 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
commit 67fe54c936

@ -0,0 +1,52 @@
----- LIPSTIK
Maintainer:
Patrice Trembay <tremblaypatrice AT yahoo DOT fr>
on kde-[look/apps].org : PaT
http://www.poplix.info/lipstik (Online March 2006)
There is some code in lipstik based on the following sources :
Thanks to all these authors!
- Comix style for KDE (Jens Luetkens)
- PlastikQ style for KDE (Martin Beck)
- Krisp style for KDE (Keith Meehl)
- Ballistik (thanks to Florian Merz)
- Kerastik (thanks to Victor Perez Q)
- DotNET (thanks to Chris Lee)
- Polyester (thanks Marco Martin)
- and many other sources of inspiration (qtcurvem, keramik, tiblit, etc.)!
----- PLASTIK
Maintainer:
Sandro Giessl <ceebx AT users DOT sourceforge DOT net>
Patch: smaller rounded edges for listview headers:
Vincent Wagelaar <vincent AT ricardis DOT tudelft DOT nl>
Patch: for tool buttons (fix for korns KornButton; tool buttons of qt apps
behave like tool buttons of kde apps.)
Bernardo Hung <deciare AT gta DOT igs DOT net>
Widget Style:
---------------------------------------------------------------------------
"Plastik" is based on the excellent clean code of the kde style "dotNET";
Some code adopted from the "Keramik" kde style. Thanks!
--- original dotNET Credits: ----------------------------------------------
Copyright (C) 2001-2002, Chris Lee <clee@kde.org>
Carsten Pfeiffer <pfeiffer@kde.org>
Karol Szwed <gallium@kde.org>
Drawing routines completely reimplemented from KDE3 HighColor, which was
originally based on some stuff from the KDE2 HighColor.
--- original Keramik Credits: ---------------------------------------------
Copyright (c) 2002 Malte Starostik <malte@kde.org>
(c) 2002,2003 Maksim Orlovich <mo002j@mail.rochester.edu>
based on the KDE3 HighColor Style
Copyright (C) 2001-2002 Karol Szwed <gallium@kde.org>
(C) 2001-2002 Fredrik Hoeglund <fredrik@kde.org>
Drawing routines adapted from the KDE2 HCStyle,
Copyright (C) 2000 Daniel M. Duley <mosfet@kde.org>
(C) 2000 Dirk Mueller <mueller@kde.org>
(C) 2001 Martijn Klingens <klingens@kde.org>
Progressbar code based on KStyle,
Copyright (C) 2001-2002 Karol Szwed <gallium@kde.org>
---------------------------------------------------------------------------

19
BUGS

@ -0,0 +1,19 @@
#1 : On really small buttons, the focus rectangle looks strange. (Not only my fault, though,
same happens in almost every style I've tried.) Ill try to come up with something else
for the focus indication.
#2 : When you first select this style, some apps, like kicker, wont refresh all the settings.
This is not really a bug in Lipstik, but it happens.
(Workaround : restart KDE, or just kicker by pressing ALT+F2 and
type "dcop kicker Panel restart".
#3 : Looking for a way to make the menu titles have the "unflatten" look even when the taskbar
is set to flat... (Dont know yet... Maybe qtcast for the menu class?)
UPDATE: Well, since the style is designed with KDE 3.5 in mind, and my flat kicker
buttons hack for older KDE versions is gone, the menu titles wont get the flat
look, since that was a side-effect of this hack.
#4 : Find a way to highlight the kicker taskbar buttons when in flat mode... What is that about?
I can't remember :)
#5 : Toolbar gradients quite suck ;)

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
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
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

@ -0,0 +1,238 @@
---01/10/2007---
2.2.3 : For my PC-BSD friends...
--Add a configurable active tab highlight color.
--PC-BSD rocks! Try it!
---17/02/2007---
2.2.2 : After one year...
--Just a repackaging of the special Debian version.
--Updated the spec file for Fedora Core 6, thanks to Pramod Venugopal.
--Lipstik now has a home page (http://poplix.homelinux.com/lipstik).
...I have a new version (2.3) locally but it will need some more testing
before I release it; Lipstik is still not dead after all ;)
---28/02/2006---
2.2.1 : Quick bug fix release.
--Trying things to get the build to work with GCC 4.1...
--Disabled by default the toolbar gradients (will need more work before it looks good...)
---08/02/2006---
2.2 : Sanity.
I think the last release was not that good. Let me make it up to you with this one. Enjoy!
--Added the possibility to configure the spacing for menus from 0 (like Lipstik < 2.0) to 8 pixels. The default is 6.
(It replaces the space-saving menu option).
--While at it, bring back the toolbar item spacing from the dead, but this time working correctly and defaulted to off.
You can configure it from 0 to 6 pixels.
--Added a gradient option for toolbars.
--Replaced the boring "Alternative menu gradients" by "Button-like menu gradients". It renders the selected menu entry
like a button. (Inspiration comes from the incredible QtCurve.)
--Now, last release was just crazy with regards to default options. Sanitize it all.
--Updated the build system so it will be more compatible with more distros. If it breaks for you, e-mail me.
--Hopefully fixed a couple of building bugs with the myriad of GCC compilers out there.
--Fixed a couple of rendering bugs (especially with toolbar/dock handles).
--Tweaked Lipstik Noble color-scheme a bit.
--NOTE: If you switch "Plastik gradients" on and wonder why the toolbar gradients look inverted, uncheck the
"Invert gradients" in the Toolbars configuration group. (By the way, try it, Lipstik looks best this way, and
with the Noble color scheme too :).
---24/01/2006---
2.1.1 : Never released finally...
---10/12/2005---
2.1 : Are we there yet?
Some small fixes, a new option and hopefully, the last release this year :)
--Fix for the toolbar separator not being the right color.
--Added an option to "compress" menus. (Space saving menus).
--The default checkmarks/radiobuttons color is now the highlighting color.
---08/12/2005---
2.0 : Done.
Here we go. The final major Lipstik release.
I tried to include many of the suggestions I received over time, most of them really good ideas! Thanks to all of you!
See ya soon!
--Finally found a way to make Mouse Hover Highlighting work on TabBar buttons. (Yay!!!)
--Fixed the bug where you would choose a custom color in the config panel and it would not take effect
immediately. (Yay!!!)
--A nice suggestion from morteoh: add more breathing room between menu items (vertical space). Menus now look
a lot less crammed and cluttered.
--Added the option to use a flat menu stripe.
--Small speed optimisations for mouse hover highlighting and in general.
--Fixed the disabled ticks (dont draw them colored if they are disabled!).
--Dont draw icon+pressed background for checked menu items with icons, draw the usual checkmark+pressed background only.
--Ligthened up the panels and box frames a bit, so they react more to contrast changes.
--Fix to get lighter separators, forgotten in the rewrite.
--Rewrote the INSTALL file so it is up to date.
--Fixed the SlackBuild script (and added a slack-desc file).
--Many other fixes...
...Stay tuned, something completely new is coming in the next year, its gonna rok... ;)
---06/12/2005---
1.99.1 : Quick Fix.
--My computer's clock was set in the future! Some of you may have had troubles building. This will fix it.
--Fix for the "alternative menu gradient" not being consistent between plastik and lipstik style gradients.
--Fix for the scrollbars buttons gradient painting.
--Added my SlackBuild script while at it.
---06/12/2005---
1.99 : The Road to 2.0.
Exactly one year after the Beta1 of Lipstik 1.0, here comes the Beta1 of Lipstik 2.0.
A new tradition is born... A new Lipstik every christmas!
The style still looks the same, but refined. Also, many options have been added and many
bugs have been fixed. The performance should also be a bit better.
Here's the Changelog:
--Complete rewrite. Resync with KDE 3.5 plastik sources.
--Added the possibility the configure the width of the scrollbars. (Small/Normal/Medium)
--Added active tab highlighting (configurable).
--Added a new experimental menu gradient style.
--Added a new configurable checkmark style. (The original "X" or a "V"/tick).
--The whole style should behave better with dark color schemes.
--The menu bar coloring is now configurable.
--Finer dots and better highlighting of the dots.
--Konqueror's sidebar tabs are now flat.
--Fixed the Sharper Menu Gradients option so it actually does something visible.
--Fixed kicker applet handles appearance.
--The default Menu Stripe color will now be taken from the window decoration background color (lightened up a bit).
--Fixed the "inactive menu item focus rectangle". Wow, try to figure what this is...
--Better focus rectangle by making it alphablended with the background.
--The style should play better with transparent menus. (No menu stripe though)
--Added a new color scheme (Lipstik Noble).
--And many more things I cant remember now...
This a beta release, but it should be at least as good as Lipstik 1.3. Please test and report problems!
Note: Since this style is designed with KDE 3.5 in mind, the flat taskbar buttons hack for older
KDEs is gone. If you still run an older KDE and absolutely want to get the flat taskbar buttons,
use Lipstik 1.3.
---01/08/2005---
1.3 : Bug-fixing mode.
Thanks to many reports, I fixed many bugs in Lipstik...
--Fixed 3 bugs related to Radio buttons and Custom Menu Items, thanks to Sébastien Laoût.
--Fixed 2 bugs related to uninitialized variables.
--Fixed a bug related to larger spaces between toolbar items; since I dont want to lose
that feature, Ive added the option to enable/disable it in the config panel. (disabled by default).
Thanks to Gabor for the report.
--Fixed 3 compiler warnings about unused function members.
--Changed the "application menu mouse highlighting" from a rectangle to a gradient.
I think it fits better with the way the rest of the menus are displayed, and it is more consistent.
(and as a side-effect, it fixes Firefox menus with gtk-qt). This was suggested sometimes ago, I dont
remember by who...
--Added a spec file for rpm building, thanks to William Flynn.
--Not visible, but a big cleanup of the code in preparation for Lipstik 2.0
---23/06/2005---
1.2 : Solstice Edition.
The "Lipstik is not dead" release. After almost 6 months (!!!) since the last release, here comes
Lisptik 1.2, with cool new features and an even more clean look.
--The status bar in active konqueror views is white; that is ugly. Paint it like the rest.
--Lighter item and toolbars separators.
--Those who tried KDE 3.5 in SVN know how cool the taskbar looks. This is now available
for KDE 3.4!
--The column headers (like in listviews) were too busy. There is now an option to flatten them.
--Make the "splitters" highlighting look consistent with the rest of the style.
--Space the items on toolbars a little bit.
--Some changes to the defaults. (Nothing big.)
---24/12/2004---
1.1 : Christmas Edition :-)
Just a little something for xmas.
--New menu stripe style, looks better I think.
--The new menu stripe solves the menus-in-gimp-look-like-crap bug.
--The menu stripe will now display the same gradient even if "Inverted gradients (plastik style)" is selected.
--The "Sharper menu gradients" option will now display a lot more sharper menu gradients. :)
---16/12/2004---
1.0 : Merry Christmas!
No big changes, just small adjustments. This is lipstik 1.0. I hope to have time to
code new features in 2005.
--Small bug with column headers fixed.
--Added the option to enable/disable the new style focus rectangle. (disabled by default)
---12/12/2004---
1.0 beta2 : Small tweaks...
I dont have much time these days to work on lipstik, but here is a small update.
--You can now choose the slider hanlde size. (Small (as in plastik), Medium (like previous
lipstik versions) and large (good for dragging in kmplayer).
--Dont show top and right borders on column headers.
--Better help in the INSTALL file.
---6/12/2004---
1.0 beta1 : Reaching the "Susan" stage :-)
--Completely redone the configuration panel.
--Fixed the position of dots on horizontal dockwindow.
--Toolbar handle mouseover highlighting.
--Popupmenu arrows are now using the button text color when normal, and highlight text color when selected.
--Arrow color on "colored combobox" is now the highlighted text color. (matching plastikq's behaviour)
--Adjusted arrow position on combobox handle.
---3/12/2004---
0.91 : Please test!
There were some bugs in 0.90, they are fixed. Also there are some new features...
--Fixed dots everywhere. (scrollbars, toolbar handles, kicker applet handles, sliders, etc.)
--Scrollbars and sliders mouseover highlighting.
--Fixed the menu stripe. Color is now the same for enabled and disabled menu items.
--Added an option to specify a custom menu stripe color. (Default is button color)
--Added an option to draw the scrollbar grooves.
--Better config panel layout.
--Fixed vertical slider handle.
--Some small updates to the Lisptik White color scheme.
--Many other smaller fixes I cant remember now...
---1/12/2004---
0.90 : Plastik wars! ;-)
So many changes, I might forget some... If everything goes well, the 1.0 release will happen soon!
--There are now four types of scrollbars to choose from (KDE,Windows,Next,Platinum).
--Brand new configuration panel, with many new options, and a friendlier UI.
--Configurable highlighting : PlastikQ style combobox handle, kicker taskbar active button, focus rectangle...
--Configurable menu style : Dotnet/krisp-style stripe, sharper gradients...
--You can switch the status bar frame and the toolbar handles on and off.
--The toolbar handle looks better now. (lined up dots)
--Some other minor fixes...
---29/11/2004---
0.7 : Almost done!
--The vertical scrollbars are colored a bit more lighter, so they wont look weird anymore. (well, less weird)
--Only highlight the top and bottom of the active taskbar button. (more subtle)
--Fixed the "pressed button" gradients by... removing the gradients.
--Added 2 color schemes : Lipstik Standard, Lipstik White. (If you think you have a good color scheme for
lipstik, please send it to me, I will include one or two submissions in the next release)
---29/11/2004---
0.6 : YALU :)
--The scrollbars arrows are now centered. (thanks tubatodd)
--Sync with plastik latest changes. (some fixes)
--There is now an option to display the "normal" plastik gradients. (look for "Reverse gradients (plastik style))
--Some other minor layout tweaks.
---28/11/2004---
0.5 : Almost there...
--The dots in the scrollbars are now centered. (thanks to Osho for reminding me)
--Scrollbar grooves are now filled with a solid color; I think it gives a better (faster?) indication of where we are,
and as a side-effect, it gives a cleaner look.
--Applied the latest fix from plastik cvs head version. (even less cpu usage for animated progress bars)
--The "default button" contour is now the highlight color; again it gives a faster indication of what is the default
button when you want to press Enter.
---26/11/2004---
0.4 : Its getting better.
--Gradients are now consistent between normal and sunken buttons.
--Modified highlighting a little.
--Sharper contrast for dots (toolbar handle, scroolbar handle, etc.)
--Changed the slider to have dots instead of lines, to be more consistent with the rest of the style.
---26/11/2004---
0.3 : Tuning.
--New focus rectangle (please tell what you think, its not definitive)
--Applied the fix for the listview branch display that is part of Andrunko "Improving KDE" patches.
---25/11/2004---
0.2 : Big changes...
--Now based on the latest plastik sources from kde cvs head, so you get, for free, all the latest fixes. (Less CPU usage,more options,etc.)
--Fixed the look of the scrollbars (both vertical and horizontal).
--Tweaked the toolbar handle a little bit.
---25/11/2004---
0.1 : Initial release.

@ -0,0 +1,86 @@
----- First of all:
If possible, and available, try a package built specifically for your
distribution...
----- Building from sources:
First make sure that you have both the QT and KDE development headers
installed. (qt and kdelibs devel)
Then unpack the sources somewhere you have writing rights.
In a terminal (konsole, xterm, eterm, etc.), type :
./configure
make
(Then, as root):
make install
--
If any of these steps fail, do:
make -f Makefile.dist
It may help you build it. If it still fails, mail me.
----- Bad configure = build failure...
You might need to give 'configure' the path to your kde
installation. eg: /usr, /opt/kde.
./configure --prefix=/opt/kde
--
You can find your KDE base directory by typing kde-config --prefix
--
-------------------------------------------------------------------------------
----- Debian notes:
You may need to append this to the configure line:
--prefix=/usr
And maybe this one:
--with-qt-includes=/usr/include/qt3
----- Mandrake/Mandriva notes:
Mandrake 10.0 uses KDE 3.2. I never tested lipstik against KDE 3.2 but it "should" work with
some tweaking (see Debian notes).
I dont have Mandrake around so I cant give more specific help for now, stay tuned.
Mandriva (Mandrake's new name) is using more recent KDE releases. Lipstik should work
out of the box there.
----- moc troubles???
Some people have reported that building fails with errors related to .moc files.
eg:
lipstikconf.cpp:479:27: lipstikconf.moc: No such file or directory
If this happens to you, dont panic.
In the source dir, there are style and style/config subdirs:
In the style dir do:
moc -o lipstik.moc lipstik.h
And then in the style/config subdir do
moc -o lipstikconf.moc lipstikconf.h
Then run make again, it should work.
----- Lipstik's build system sucks...
It should suck less now... maybe...

@ -0,0 +1,26 @@
SUBDIRS = style
EXTRA_DIST = admin AUTHORS COPYING ChangeLog INSTALL README TODO lipstik.spec
# not a GNU package. You can remove this line, if
# have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = foreign
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
$(top_srcdir)/subdirs:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
package-messages:
$(MAKE) -f admin/Makefile.common package-messages
$(MAKE) -C po merge
dist-hook:
cd $(top_distdir) && perl admin/am_edit -padmin
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs

@ -0,0 +1,14 @@
all:
@echo "This Makefile is only for the CVS repository"
@echo ""
@if test ! -d admin; then \
echo "Please recheckout this module!" ;\
echo "for cvs: use checkout once and after that update again" ;\
echo "for cvsup: checkout kde-common from cvsup and" ;\
echo " link kde-common/admin to ./admin" ;\
exit 1 ;\
fi
$(MAKE) -f admin/Makefile.common cvs
.SILENT:

@ -0,0 +1 @@
see ChangeLog

@ -0,0 +1,39 @@
#ABOUT
This is Lipstik, a fast and clean KDE 3 style based on Plastik.
It contains the following features :
Two widget gradients styles (Lipstik and Plastik's original),
A unique Menu Stripe style,
Many options to configure the active menu highlighting,
Configurable Sliders handles size,
Configurable Scrollbar handles width,
Different Toolbar handles for a less cluttered look,
More Mouse Hover effects,
Better focus rectangle,
Highly configurable colors,
Many options to configure the Scrollbar buttons disposition,
No more status bar frames...
...and many other enhancements!
#CREDITS
This is based on the work of Sandro Giessl <ceebx@users.sourceforge.net> and
the author of kerastik from which I ripped the automake,configure,etc.
Im not quite sure yet but the author of kerastik seems to be "intirruphay".
Please "intirruphay" tell me more so I can credit you for your work.
#WHY?
Well, I first distributed this "hack" on kde-look.org as a replacement for plastik, but
some people convinced me to release it as a fully separated package.
#WHY??
Plastik looks good, I just wanted something different for Christmas.
#NO, REALLY, WHY???
I want peace in the world, and this is how Im gonna achieve this.
#HOW DO I INSTALL THIS STYLE?
PLEASE LOOK AT THE FILE CALLED "INSTALL" ...
Have fun!

20
TODO

@ -0,0 +1,20 @@
TODO:
- I'm thinking of adding an option for shadows around widgets... We'll see.
- Smooth scrolling in the QScrollViews is very nice.
DONE:
- How can I make the sunken taskbar button show the inverted gradient, like the rest of the style? [FIXED IN 0.4]
- Maybe develop a better effect for focus rect. [FIXED IN 0.3 / RE-FIXED in 1.99]
**After some rude comments on kde-look I decided to put back the normal effect as default
for now, until I find a better way to do it.
UPDATE: Its back, but better, I hope.
- Maybe put an option to use the normal plastik gradients, for people who like the normal plastik look, but also like
all the other fixes. [DONE IN 0.6]
- Better gradient for the vertical scrollbar (looks weird right now) [FIXED IN 0.7 / LESS WEIRD]
- Can I port the Mouse Over Highlight of the slider and scrollbar from MotifPlus to Lipstik? [DONE IN 0.91]
- Menu arrows highlighting. [DONE IN 1.0 beta1]
- Config panel fits on a 800x600 resolution. [DONE IN 1.0 beta1]
- Dockwindow handle mouseover highlight. [DONE in 1.99]
- Maybe i should put an option to show a tick instead of a cross in checkboxes. [DONE in 1.99]
- Maybe some highlighting of the active tab? (Blue line at the top?) [DONE in 1.99]
- Is there a way to "highlight on mouseover" the tab buttons (new tab, close tab)? [DONE in 2.0]

File diff suppressed because it is too large Load Diff

863
aclocal.m4 vendored

@ -0,0 +1,863 @@
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_AUTOMAKE_VERSION(VERSION)
# ----------------------------
# Automake X.Y traces this macro to ensure aclocal.m4 has been
# generated from the m4 files accompanying Automake X.Y.
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
# AM_SET_CURRENT_AUTOMAKE_VERSION
# -------------------------------
# Call AM_AUTOMAKE_VERSION so it can be traced.
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.9.5])])
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
#
# Of course, Automake must honor this variable whenever it calls a
# tool from the auxiliary directory. The problem is that $srcdir (and
# therefore $ac_aux_dir as well) can be either absolute or relative,
# depending on how configure is run. This is pretty annoying, since
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
# source directory, any form will work fine, but in subdirectories a
# relative path needs to be adjusted first.
#
# $ac_aux_dir/missing
# fails when called from a subdirectory if $ac_aux_dir is relative
# $top_srcdir/$ac_aux_dir/missing
# fails if $ac_aux_dir is absolute,
# fails when called from a subdirectory in a VPATH build with
# a relative $ac_aux_dir
#
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
# are both prefixed by $srcdir. In an in-source build this is usually
# harmless because $srcdir is `.', but things will broke when you
# start a VPATH build or use an absolute $srcdir.
#
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
# and then we would define $MISSING as
# MISSING="\${SHELL} $am_aux_dir/missing"
# This will work as long as MISSING is not called from configure, because
# unfortunately $(top_srcdir) has no meaning in configure.
# However there are other variables, like CC, which are often used in
# configure, and could therefore not use this "fixed" $ac_aux_dir.
#
# Another solution, used here, is to always expand $ac_aux_dir to an
# absolute PATH. The drawback is that using absolute paths prevent a
# configured tree to be moved without reconfiguration.
AC_DEFUN([AM_AUX_DIR_EXPAND],
[dnl Rely on autoconf to set up CDPATH properly.
AC_PREREQ([2.50])dnl
# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`
])
# AM_CONDITIONAL -*- Autoconf -*-
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 7
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
# -------------------------------------
# Define a conditional.
AC_DEFUN([AM_CONDITIONAL],
[AC_PREREQ(2.52)dnl
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
AC_SUBST([$1_TRUE])
AC_SUBST([$1_FALSE])
if $2; then
$1_TRUE=
$1_FALSE='#'
else
$1_TRUE='#'
$1_FALSE=
fi
AC_CONFIG_COMMANDS_PRE(
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
AC_MSG_ERROR([[conditional "$1" was never defined.
Usually this means the macro was only invoked conditionally.]])
fi])])
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 8
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
# written in clear, in which case automake, when reading aclocal.m4,
# will think it sees a *use*, and therefore will trigger all it's
# C support machinery. Also note that it means that autoscan, seeing
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
# _AM_DEPENDENCIES(NAME)
# ----------------------
# See how the compiler implements dependency checking.
# NAME is "CC", "CXX", "GCJ", or "OBJC".
# We try a few techniques and use that to set a single cache variable.
#
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
# dependency, and given that the user is not expected to run this macro,
# just rely on AC_PROG_CC.
AC_DEFUN([_AM_DEPENDENCIES],
[AC_REQUIRE([AM_SET_DEPDIR])dnl
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
AC_REQUIRE([AM_DEP_TRACK])dnl
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
[$1], CXX, [depcc="$CXX" am_compiler_list=],
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
[depcc="$$1" am_compiler_list=])
AC_CACHE_CHECK([dependency style of $depcc],
[am_cv_$1_dependencies_compiler_type],
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
# We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output
# in D'.
mkdir conftest.dir
# Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory.
cp "$am_depcomp" conftest.dir
cd conftest.dir
# We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object
# directory.
mkdir sub
am_cv_$1_dependencies_compiler_type=none
if test "$am_compiler_list" = ""; then
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
fi
for depmode in $am_compiler_list; do
# Setup a source with many dependencies, because some compilers
# like to wrap large dependency lists on column 80 (with \), and
# we should not choose a depcomp mode which is confused by this.
#
# We need to recreate these files for each test, as the compiler may
# overwrite some of them when testing with obscure command lines.
# This happens at least with the AIX C compiler.
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
echo '#include "conftst'$i'.h"' >> sub/conftest.c
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
# Solaris 8's {/usr,}/bin/sh.
touch sub/conftst$i.h
done
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
case $depmode in
nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
if test "x$enable_dependency_tracking" = xyes; then
continue
else
break
fi
;;
none) break ;;
esac
# We check with `-c' and `-o' for the sake of the "dashmstdout"
# mode. It turns out that the SunPro C++ compiler does not properly
# handle `-M -o', and we need to detect this.
if depmode=$depmode \
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
>/dev/null 2>conftest.err &&
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
# that says an option was ignored or not supported.
# When given -MP, icc 7.0 and 7.1 complain thusly:
# icc: Command line warning: ignoring option '-M'; no argument required
# The diagnosis changed in icc 8.0:
# icc: Command line remark: option '-MP' not supported
if (grep 'ignoring option' conftest.err ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
am_cv_$1_dependencies_compiler_type=$depmode
break
fi
fi
done
cd ..
rm -rf conftest.dir
else
am_cv_$1_dependencies_compiler_type=none
fi
])
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
AM_CONDITIONAL([am__fastdep$1], [
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
])
# AM_SET_DEPDIR
# -------------
# Choose a directory name for dependency files.
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
AC_DEFUN([AM_SET_DEPDIR],
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
])
# AM_DEP_TRACK
# ------------
AC_DEFUN([AM_DEP_TRACK],
[AC_ARG_ENABLE(dependency-tracking,
[ --disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors])
if test "x$enable_dependency_tracking" != xno; then
am_depcomp="$ac_aux_dir/depcomp"
AMDEPBACKSLASH='\'
fi
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
AC_SUBST([AMDEPBACKSLASH])
])
# Generate code to set up dependency tracking. -*- Autoconf -*-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
#serial 3
# _AM_OUTPUT_DEPENDENCY_COMMANDS
# ------------------------------
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
[for mf in $CONFIG_FILES; do
# Strip MF so we end up with the name of the file.
mf=`echo "$mf" | sed -e 's/:.*$//'`
# Check whether this is an Automake generated Makefile or not.
# We used to match only the files named `Makefile.in', but
# some people rename them; so instead we look at the file content.
# Grep'ing the first line is not enough: some people post-process
# each Makefile.in and add a new line on top of each file to say so.
# So let's grep whole file.
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
dirpart=`AS_DIRNAME("$mf")`
else
continue
fi
# Extract the definition of DEPDIR, am__include, and am__quote
# from the Makefile without running `make'.
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
test -z "$DEPDIR" && continue
am__include=`sed -n 's/^am__include = //p' < "$mf"`
test -z "am__include" && continue
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
# When using ansi2knr, U may be empty or an underscore; expand it
U=`sed -n 's/^U = //p' < "$mf"`
# Find all dependency output files, they are included files with
# $(DEPDIR) in their names. We invoke sed twice because it is the
# simplest approach to changing $(DEPDIR) to its actual value in the
# expansion.
for file in `sed -n "
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
# Make sure the directory exists.
test -f "$dirpart/$file" && continue
fdir=`AS_DIRNAME(["$file"])`
AS_MKDIR_P([$dirpart/$fdir])
# echo "creating $dirpart/$file"
echo '# dummy' > "$dirpart/$file"
done
done
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
# AM_OUTPUT_DEPENDENCY_COMMANDS
# -----------------------------
# This macro should only be invoked once -- use via AC_REQUIRE.
#
# This code is only required when automatic dependency tracking
# is enabled. FIXME. This creates each `.P' file that we will
# need in order to bootstrap the dependency handling code.
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AC_CONFIG_COMMANDS([depfiles],
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
])
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 8
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
# Do all the work for Automake. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 12
# This macro actually does too much. Some checks are only needed if
# your package does certain things. But this isn't really a big deal.
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
# AM_INIT_AUTOMAKE([OPTIONS])
# -----------------------------------------------
# The call with PACKAGE and VERSION arguments is the old style
# call (pre autoconf-2.50), which is being phased out. PACKAGE
# and VERSION should now be passed to AC_INIT and removed from
# the call to AM_INIT_AUTOMAKE.
# We support both call styles for the transition. After
# the next Automake release, Autoconf can make the AC_INIT
# arguments mandatory, and then we can depend on a new Autoconf
# release and drop the old call support.
AC_DEFUN([AM_INIT_AUTOMAKE],
[AC_PREREQ([2.58])dnl
dnl Autoconf wants to disallow AM_ names. We explicitly allow
dnl the ones we care about.
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
AC_REQUIRE([AC_PROG_INSTALL])dnl
# test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" &&
test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
AC_SUBST([CYGPATH_W])
# Define the identity of the package.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
AC_SUBST([PACKAGE], [$1])dnl
AC_SUBST([VERSION], [$2])],
[_AM_SET_OPTIONS([$1])dnl
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
_AM_IF_OPTION([no-define],,
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
# Some tools Automake needs.
AC_REQUIRE([AM_SANITY_CHECK])dnl
AC_REQUIRE([AC_ARG_PROGRAM])dnl
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
AM_MISSING_PROG(AUTOCONF, autoconf)
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
AM_MISSING_PROG(AUTOHEADER, autoheader)
AM_MISSING_PROG(MAKEINFO, makeinfo)
AM_PROG_INSTALL_SH
AM_PROG_INSTALL_STRIP
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
AC_REQUIRE([AC_PROG_AWK])dnl
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
[_AM_PROG_TAR([v7])])])
_AM_IF_OPTION([no-dependencies],,
[AC_PROVIDE_IFELSE([AC_PROG_CC],
[_AM_DEPENDENCIES(CC)],
[define([AC_PROG_CC],
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_CXX],
[_AM_DEPENDENCIES(CXX)],
[define([AC_PROG_CXX],
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
])
])
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# that is generated. The stamp files are numbered to have different names.
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
# loop where config.status creates the headers, so we can generate
# our stamp files there.
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
[# Compute $1's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
case $_am_header in
$1 | $1:* )
break ;;
* )
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
esac
done
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_INSTALL_SH
# ------------------
# Define $install_sh.
AC_DEFUN([AM_PROG_INSTALL_SH],
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
install_sh=${install_sh-"$am_aux_dir/install-sh"}
AC_SUBST(install_sh)])
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 2
# Check whether the underlying file-system supports filenames
# with a leading dot. For instance MS-DOS doesn't.
AC_DEFUN([AM_SET_LEADING_DOT],
[rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
am__leading_dot=.
else
am__leading_dot=_
fi
rmdir .tst 2>/dev/null
AC_SUBST([am__leading_dot])])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 3
# AM_MAKE_INCLUDE()
# -----------------
# Check to see how make treats includes.
AC_DEFUN([AM_MAKE_INCLUDE],
[am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
AC_MSG_CHECKING([for style of include used by $am_make])
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
am__include=include
am__quote=
_am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
echo '.include "confinc"' > confmf
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
am__include=.include
am__quote="\""
_am_result=BSD
fi
fi
AC_SUBST([am__include])
AC_SUBST([am__quote])
AC_MSG_RESULT([$_am_result])
rm -f confinc confmf
])
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 4
# AM_MISSING_PROG(NAME, PROGRAM)
# ------------------------------
AC_DEFUN([AM_MISSING_PROG],
[AC_REQUIRE([AM_MISSING_HAS_RUN])
$1=${$1-"${am_missing_run}$2"}
AC_SUBST($1)])
# AM_MISSING_HAS_RUN
# ------------------
# Define MISSING if not defined so far and test if it supports --run.
# If it does, set am_missing_run to use it, otherwise, to nothing.
AC_DEFUN([AM_MISSING_HAS_RUN],
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
am_missing_run="$MISSING --run "
else
am_missing_run=
AC_MSG_WARN([`missing' script is too old or missing])
fi
])
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_MKDIR_P
# ---------------
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
#
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
# created by `make install' are always world readable, even if the
# installer happens to have an overly restrictive umask (e.g. 077).
# This was a mistake. There are at least two reasons why we must not
# use `-m 0755':
# - it causes special bits like SGID to be ignored,
# - it may be too restrictive (some setups expect 775 directories).
#
# Do not use -m 0755 and let people choose whatever they expect by
# setting umask.
#
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
# Some implementations (such as Solaris 8's) are not thread-safe: if a
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
# concurrently, both version can detect that a/ is missing, but only
# one can create it and the other will error out. Consequently we
# restrict ourselves to GNU make (using the --version option ensures
# this.)
AC_DEFUN([AM_PROG_MKDIR_P],
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
# We used to keeping the `.' as first argument, in order to
# allow $(mkdir_p) to be used without argument. As in
# $(mkdir_p) $(somedir)
# where $(somedir) is conditionally defined. However this is wrong
# for two reasons:
# 1. if the package is installed by a user who cannot write `.'
# make install will fail,
# 2. the above comment should most certainly read
# $(mkdir_p) $(DESTDIR)$(somedir)
# so it does not work when $(somedir) is undefined and
# $(DESTDIR) is not.
# To support the latter case, we have to write
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
# so the `.' trick is pointless.
mkdir_p='mkdir -p --'
else
# On NextStep and OpenStep, the `mkdir' command does not
# recognize any option. It will interpret all options as
# directories to create, and then abort because `.' already
# exists.
for d in ./-p ./--version;
do
test -d $d && rmdir $d
done
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
if test -f "$ac_aux_dir/mkinstalldirs"; then
mkdir_p='$(mkinstalldirs)'
else
mkdir_p='$(install_sh) -d'
fi
fi
AC_SUBST([mkdir_p])])
# Helper functions for option handling. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 3
# _AM_MANGLE_OPTION(NAME)
# -----------------------
AC_DEFUN([_AM_MANGLE_OPTION],
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
# _AM_SET_OPTION(NAME)
# ------------------------------
# Set option NAME. Presently that only means defining a flag for this option.
AC_DEFUN([_AM_SET_OPTION],
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
# _AM_SET_OPTIONS(OPTIONS)
# ----------------------------------
# OPTIONS is a space-separated list of Automake options.
AC_DEFUN([_AM_SET_OPTIONS],
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
# -------------------------------------------
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
# Check to make sure that the build environment is sane. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 4
# AM_SANITY_CHECK
# ---------------
AC_DEFUN([AM_SANITY_CHECK],
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
if test "$[*]" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftest.file`
fi
rm -f conftest.file
if test "$[*]" != "X $srcdir/configure conftest.file" \
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
test "$[2]" = conftest.file
)
then
# Ok.
:
else
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
AC_MSG_RESULT(yes)])
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_INSTALL_STRIP
# ---------------------
# One issue with vendor `install' (even GNU) is that you can't
# specify the program used to strip binaries. This is especially
# annoying in cross-compiling environments, where the build's strip
# is unlikely to handle the host's binaries.
# Fortunately install-sh will honor a STRIPPROG variable, so we
# always use install-sh in `make install-strip', and initialize
# STRIPPROG with the value of the STRIP variable (set by the user).
AC_DEFUN([AM_PROG_INSTALL_STRIP],
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'. However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
if test "$cross_compiling" != no; then
AC_CHECK_TOOL([STRIP], [strip], :)
fi
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])
# Check how to create a tarball. -*- Autoconf -*-
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 2
# _AM_PROG_TAR(FORMAT)
# --------------------
# Check how to create a tarball in format FORMAT.
# FORMAT should be one of `v7', `ustar', or `pax'.
#
# Substitute a variable $(am__tar) that is a command
# writing to stdout a FORMAT-tarball containing the directory
# $tardir.
# tardir=directory && $(am__tar) > result.tar
#
# Substitute a variable $(am__untar) that extract such
# a tarball read from stdin.
# $(am__untar) < result.tar
AC_DEFUN([_AM_PROG_TAR],
[# Always define AMTAR for backward compatibility.
AM_MISSING_PROG([AMTAR], [tar])
m4_if([$1], [v7],
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
[m4_case([$1], [ustar],, [pax],,
[m4_fatal([Unknown tar format])])
AC_MSG_CHECKING([how to create a $1 tar archive])
# Loop over all known methods to create a tar archive until one works.
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
# Do not fold the above two line into one, because Tru64 sh and
# Solaris sh will not grok spaces in the rhs of `-'.
for _am_tool in $_am_tools
do
case $_am_tool in
gnutar)
for _am_tar in tar gnutar gtar;
do
AM_RUN_LOG([$_am_tar --version]) && break
done
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
am__untar="$_am_tar -xf -"
;;
plaintar)
# Must skip GNU tar: if it does not support --format= it doesn't create
# ustar tarball either.
(tar --version) >/dev/null 2>&1 && continue
am__tar='tar chf - "$$tardir"'
am__tar_='tar chf - "$tardir"'
am__untar='tar xf -'
;;
pax)
am__tar='pax -L -x $1 -w "$$tardir"'
am__tar_='pax -L -x $1 -w "$tardir"'
am__untar='pax -r'
;;
cpio)
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
am__untar='cpio -i -H $1 -d'
;;
none)
am__tar=false
am__tar_=false
am__untar=false
;;
esac
# If the value was cached, stop now. We just wanted to have am__tar
# and am__untar set.
test -n "${am_cv_prog_tar_$1}" && break
# tar/untar a dummy directory, and stop if the command works
rm -rf conftest.dir
mkdir conftest.dir
echo GrepMe > conftest.dir/file
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
rm -rf conftest.dir
if test -s conftest.tar; then
AM_RUN_LOG([$am__untar <conftest.tar])
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
fi
done
rm -rf conftest.dir
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
AC_SUBST([am__tar])
AC_SUBST([am__untar])
]) # _AM_PROG_TAR
m4_include([acinclude.m4])

@ -0,0 +1,196 @@
/* config.h.in. Generated from configure.in by autoheader. */
/* Define if you have the CoreAudio API */
#undef HAVE_COREAUDIO
/* Define to 1 if you have the <crt_externs.h> header file. */
#undef HAVE_CRT_EXTERNS_H
/* Defines if your system has the crypt function */
#undef HAVE_CRYPT
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if you have libjpeg */
#undef HAVE_LIBJPEG
/* Define if you have libpng */
#undef HAVE_LIBPNG
/* Define if you have a working libpthread (will enable threaded code) */
#undef HAVE_LIBPTHREAD
/* Define if you have libz */
#undef HAVE_LIBZ
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if your system needs _NSGetEnviron to set up the environment */
#undef HAVE_NSGETENVIRON
/* Define to 1 if you have the <pthread/linuxthreads/pthread.h> header file.
*/
#undef HAVE_PTHREAD_LINUXTHREADS_PTHREAD_H
/* Define if you have the res_init function */
#undef HAVE_RES_INIT
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have strlcat */
#undef HAVE_STRLCAT
/* Define if you have the strlcat prototype */
#undef HAVE_STRLCAT_PROTO
/* Define if you have strlcpy */
#undef HAVE_STRLCPY
/* Define if you have the strlcpy prototype */
#undef HAVE_STRLCPY_PROTO
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `vsnprintf' function. */
#undef HAVE_VSNPRINTF
/* Suffix for lib directories */
#undef KDELIBSUFF
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* The size of a `char *', as computed by sizeof. */
#undef SIZEOF_CHAR_P
/* The size of a `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of a `long', as computed by sizeof. */
#undef SIZEOF_LONG
/* The size of a `size_t', as computed by sizeof. */
#undef SIZEOF_SIZE_T
/* The size of a `unsigned long', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_LONG
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I'm too lazy to write a configure test as long as only
* unixware is related
*/
#ifdef _UNIXWARE
#define HAVE_BOOLEAN
#endif
/*
* AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
* that defines bzero.
*/
#if defined(_AIX)
#include <strings.h>
#endif
#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern "C"
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#endif
#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern "C"
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#endif
/*
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/
#if !defined(HAVE_VSNPRINTF) || defined(hpux)
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
#else
#include <varargs.h>
#endif
#ifdef __cplusplus
extern "C"
#endif
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#ifdef __cplusplus
extern "C"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif
#if defined(__SVR4) && !defined(__svr4__)
#define __svr4__ 1
#endif
/* Compatibility define */
#undef ksize_t
/* Define the real type of socklen_t */
#undef socklen_t

@ -0,0 +1,316 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --host=x86_64-linux-gnu --build=x86_64-linux-gnu --prefix=/opt/kde3 --mandir=${prefix}/share/man --infodir=${prefix}/share/info --disable-debug --enable-final --with-extra-libs=/opt/kde3/lib --with-extra-includes=/opt/kde3/include/kde
## --------- ##
## Platform. ##
## --------- ##
hostname = argus4
uname -m = x86_64
uname -r = 2.6.31-16-generic
uname -s = Linux
uname -v = #53-Ubuntu SMP Tue Dec 8 04:02:15 UTC 2009
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/kde3/bin
PATH: /opt/kde3/games
PATH: /opt/kde3/bin
PATH: /home/eldarion/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1543: checking build system type
configure:1561: result: x86_64-pc-linux-gnu
configure:1569: checking host system type
configure:1583: result: x86_64-pc-linux-gnu
configure:1591: checking target system type
configure:1605: result: x86_64-pc-linux-gnu
configure:1652: checking for a BSD-compatible install
configure:1707: result: /usr/bin/install -c
configure:1722: checking for -p flag to install
configure:1735: result: yes
configure:1746: checking whether build environment is sane
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_build_alias=x86_64-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-Wall -g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-g -O2'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-Bsymbolic-functions
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_host_alias=x86_64-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_target=x86_64-pc-linux-gnu
ac_cv_target_alias=x86_64-linux-gnu
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
ARTSCCONFIG=''
AUTOCONF=''
AUTODIRS=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
BROCKENBORING=''
CC=''
CCDEPMODE=''
CFLAGS='-Wall -g -O2'
CONF_FILES=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-g -O2'
CYGPATH_W=''
DCOPIDL2CPP=''
DCOPIDL=''
DCOP_DEPENDENCIES=''
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FRAMEWORK_COREAUDIO=''
GMSGFMT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM=''
KDECONFIG=''
KDE_EXTRA_RPATH=''
KDE_INCLUDES=''
KDE_LDFLAGS=''
KDE_MT_LDFLAGS=''
KDE_MT_LIBS=''
KDE_NO_UNDEFINED=''
KDE_PLUGIN=''
KDE_RPATH=''
KDE_USE_CLOSURE_FALSE=''
KDE_USE_CLOSURE_TRUE=''
KDE_USE_FINAL_FALSE=''
KDE_USE_FINAL_TRUE=''
KDE_USE_NMCHECK_FALSE=''
KDE_USE_NMCHECK_TRUE=''
KDE_XSL_STYLESHEET=''
LDFLAGS='-Wl,-Bsymbolic-functions'
LIBCOMPAT=''
LIBCRYPT=''
LIBDL=''
LIBJPEG=''
LIBOBJS=''
LIBPNG=''
LIBPTHREAD=''
LIBRESOLV=''
LIBS=''
LIBSM=''
LIBSOCKET=''
LIBTOOL=''
LIBUCB=''
LIBUTIL=''
LIBZ=''
LIB_KAB=''
LIB_KABC=''
LIB_KDECORE=''
LIB_KDEPRINT=''
LIB_KDEUI=''
LIB_KFILE=''
LIB_KFM=''
LIB_KHTML=''
LIB_KIO=''
LIB_KPARTS=''
LIB_KSPELL=''
LIB_KSYCOCA=''
LIB_POLL=''
LIB_QPE=''
LIB_QT=''
LIB_SMB=''
LIB_X11=''
LIB_XEXT=''
LN_S=''
LTLIBOBJS=''
MAKEINFO=''
MCOPIDL=''
MEINPROC=''
MOC=''
MSGFMT=''
NOOPT_CFLAGS=''
NOOPT_CXXFLAGS=''
OBJEXT=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
QTE_NORTTI=''
QT_INCLUDES=''
QT_LDFLAGS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
TOPSUBDIRS=''
UIC=''
UIC_TR=''
USER_INCLUDES=''
USER_LDFLAGS=''
USE_EXCEPTIONS=''
USE_RTTI=''
USE_THREADS=''
VERSION=''
WOVERLOADED_VIRTUAL=''
XGETTEXT=''
X_EXTRA_LIBS=''
X_INCLUDES=''
X_LDFLAGS=''
X_PRE_LIBS=''
X_RPATH=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
all_includes=''
all_libraries=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
include_ARTS_FALSE=''
include_ARTS_TRUE=''
includedir='${prefix}/include'
infodir='${prefix}/share/info'
install_sh=''
kde_appsdir=''
kde_bindir=''
kde_confdir=''
kde_datadir=''
kde_htmldir=''
kde_icondir=''
kde_includes=''
kde_libraries=''
kde_libs_htmldir=''
kde_libs_prefix=''
kde_locale=''
kde_mimedir=''
kde_moduledir=''
kde_qtver=''
kde_servicesdir=''
kde_servicetypesdir=''
kde_sounddir=''
kde_styledir=''
kde_templatesdir=''
kde_wallpaperdir=''
kde_widgetdir=''
kdeinitdir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/share/man'
mkdir_p=''
oldincludedir='/usr/include'
prefix='/opt/kde3'
program_transform_name='s,x,x,'
qt_includes=''
qt_libraries=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='pc'
x_includes='NONE'
x_libraries='NONE'
xdg_appsdir=''
xdg_directorydir=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: caught signal 2
configure: exit 1

@ -0,0 +1,2 @@
./admin/configure.in.min
configure.in.in

@ -0,0 +1,77 @@
dnl This file is part of the KDE libraries/packages
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
dnl This file is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Library General Public License for more details.
dnl You should have received a copy of the GNU Library General Public License
dnl along with this library; see the file COPYING.LIB. If not, write to
dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
dnl Boston, MA 02110-1301, USA.
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acinclude.m4) dnl a source file from your sub dir
dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH
dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM
dnl Perform program name transformation
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(lipstik, 0.1) dnl searches for some needed programs
KDE_SET_PREFIX
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS
KDE_USE_QT(3)
AC_PATH_KDE
#MIN_CONFIG(3)
dnl PACKAGE set before
KDE_CREATE_SUBDIRSLIST
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ style/Makefile ])
AC_CONFIG_FILES([ style/config/Makefile ])
AC_OUTPUT
if test "$all_tests" = "bad"; then
if test ! "$cache_file" = "/dev/null"; then
echo ""
echo "Please remove the file $cache_file after changing your setup"
echo "so that configure will find the changes next time."
echo ""
fi
else
echo ""
echo "Good - your configure finished. Start make now"
echo ""
fi

@ -0,0 +1,3 @@
#MIN_CONFIG(3)
AM_INIT_AUTOMAKE(lipstik, 0.1)

@ -0,0 +1,59 @@
Summary: lipstik theme for KDE
Name: lipstik
Version: 2.2.3
Release: 1
Source: %{name}-%{version}.tar.bz2
URL: http://www.kde-look.org/content/show.php?content=18223
Vendor: poplixos (at) gmail.com
License: GPL
Group: System/GUI/KDE
Packager: William Flynn <wdf@sifr.net>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: kdelibs >= 3.0
Requires: kdelibs >= 3.0
%description
Lipstik is a fast and clean style with many options to tune your desktop look.
%prep
%setup -q
%build
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
%install
make install prefix=$RPM_BUILD_ROOT/usr
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644, root, root)
/usr/lib/kde3/kstyle_lipstik_config.la
/usr/lib/kde3/kstyle_lipstik_config.so
/usr/lib/kde3/plugins/styles/lipstik.la
/usr/lib/kde3/plugins/styles/lipstik.so
/usr/share/apps/kstyle/themes/lipstik.themerc
/usr/share/apps/kdisplay/color-schemes/lipstikstandard.kcsrc
/usr/share/apps/kdisplay/color-schemes/lipstikwhite.kcsrc
/usr/share/apps/kdisplay/color-schemes/lipstiknoble.kcsrc
%changelog
* Mon Oct 01 2007 Patrice Tremblay
Version 2.2.3, for my PC-BSD friends... :
- Add a configurable active tab highlight color.
* Sat Feb 17 2007 Patrice Tremblay
Version 2.2.2, based on the special release for Debian, 2.2.1, which
was never announced:
- A tweak in the build system.
- An updated spec file thanks Pramod Venugopal
- Toolbar gradients are now off by default.
* Wed Jan 31 2007 Pramod Venugopal
Updated Spec file for FC6 with the following:
- Changed dependencies to reflect FC6 packages
- Changed prefix in configure script to point to default locations
- Changed prefix in install to lowercase and to point to usr
- Changed files to reflect new locations

@ -0,0 +1,25 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = config
KDE_CXXFLAGS = -DQT_PLUGIN
INCLUDES = $(all_includes)
stylercdir = $(kde_datadir)/kstyle/themes
stylerc_DATA = lipstik.themerc
colorshemedir = $(kde_datadir)/kdisplay/color-schemes
colorsheme_DATA = lipstikstandard.kcsrc lipstikwhite.kcsrc lipstiknoble.kcsrc
EXTRA_DIST = $(stylerc_DATA)
noinst_HEADERS = lipstik.h misc.h
kde_style_LTLIBRARIES = lipstik.la
lipstik_la_SOURCES = lipstik.cpp misc.cpp
lipstik_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
lipstik_la_LIBADD = -lkdefx
lipstik_la_METASOURCES = AUTO
DISTCLEANFILES = $(lipstik_la_METASOURCES)

@ -0,0 +1,12 @@
INCLUDES = $(all_includes)
noinst_HEADERS = lipstikconf.h
kde_module_LTLIBRARIES = kstyle_lipstik_config.la
kstyle_lipstik_config_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
kstyle_lipstik_config_la_LIBADD = $(LIB_KDEUI)
kstyle_lipstik_config_la_SOURCES = lipstikconf.cpp
kstyle_lipstik_config_la_METASOURCES = AUTO
messages:
$(XGETTEXT) *.cpp *.h -o $(podir)/kstyle_lipstik_config.pot

@ -0,0 +1,764 @@
/*
Copyright (C) 2004-2007 Patrice Tremblay <tremblaypatrice@yahoo.fr>
http://www.poplix.info/lipstik
based on plastik:
Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
based on the Keramik configuration dialog:
Copyright (c) 2003 Maksim Orlovich <maksim.orlovich@kdemail.net>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#include <qcheckbox.h>
#include <qlayout.h>
#include <qhbox.h>
#include <qsettings.h>
#include <qcolor.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <kglobal.h>
#include <klocale.h>
#include <kcolorbutton.h>
#include <qtabwidget.h>
#include <qvgroupbox.h>
#include <qspinbox.h>
#include <qgrid.h>
#include "lipstikconf.h"
extern "C"
{
QWidget* allocate_kstyle_config(QWidget* parent)
{
KGlobal::locale()->insertCatalogue("kstyle_lipstik_config");
return new LipstikStyleConfig(parent);
}
}
LipstikStyleConfig::LipstikStyleConfig(QWidget* parent): QWidget(parent)
{
QVBoxLayout* layout = new QVBoxLayout(this, 0, 0);
QGridLayout* tabLayout = new QGridLayout(this, 2, 1, 10);
KGlobal::locale()->insertCatalogue("kstyle_lipstik_config");
///Init tabs
QTabWidget *tabWidget = new QTabWidget(this);
layout->addWidget(tabWidget);
///Init tab1
QWidget *page1 = new QWidget(tabWidget);
layout = new QVBoxLayout(page1);
tabWidget->insertTab(page1, i18n("Configuration"));
layout->addLayout(tabLayout);
///General group
QVGroupBox *generalGrp = new QVGroupBox(i18n("General"), page1);
reverseGradients = new QCheckBox(i18n("Plastik gradients"), generalGrp );
drawTriangularExpander = new QCheckBox(i18n("Triangular tree expander"), generalGrp);
drawStatusBarFrame = new QCheckBox(i18n("Draw status bar frame"), generalGrp);
animateProgressBar = new QCheckBox(i18n("Animate progress bars"), generalGrp);
flatHeaders = new QCheckBox(i18n("Flatten column headers"), generalGrp);
tickCheckMark = new QCheckBox(i18n("Use a tick for checkmarks"), generalGrp);
tabLayout->addWidget(generalGrp,0,0,0);
///Toolbar group
QVGroupBox *toolbarGrp = new QVGroupBox(i18n("Toolbars"), page1);
QLabel* toolBarSpacingLabel;
drawToolBarSeparator = new QCheckBox(i18n("Draw separators"), toolbarGrp);
drawToolBarItemSeparator = new QCheckBox(i18n("Draw item separators"), toolbarGrp);
drawToolBarHandle = new QCheckBox(i18n("Draw handles"), toolbarGrp);
drawToolBarGradient = new QCheckBox(i18n("Draw gradients"), toolbarGrp);
invertBarGrad = new QCheckBox(i18n("Invert gradients"), toolbarGrp);
toolBarSpacingLabel = new QLabel(toolbarGrp);
toolBarSpacingLabel->setText(i18n("Items spacing :"));
toolBarSpacing = new QSpinBox ( 0, 6, 1, toolbarGrp );
tabLayout->addWidget(toolbarGrp,0,1,0);
///Menus group
QVGroupBox *menusGrp = new QVGroupBox(i18n("Menus"), page1);
QLabel* menuSpacingLabel;
alterMenuGradients = new QCheckBox(i18n("Button-like menu gradients"), menusGrp);
sharperMenuGradient = new QCheckBox(i18n("Sharper menu gradients"), menusGrp);
menuLeftSideBar = new QCheckBox(i18n("Menu Stripe"), menusGrp);
flatStripe = new QCheckBox(i18n("Flatten Stripe"), menusGrp);
customMenuStripeColor = new QCheckBox(i18n("Custom Stripe color :"), menusGrp);
QHBox *menuColorBox = new QHBox(menusGrp);
menuColorBox->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
menuStripeColor = new KColorButton(menuColorBox);
menuSpacingLabel = new QLabel(menusGrp);
menuSpacingLabel->setText(i18n("Menu spacing :"));
menuSpacing = new QSpinBox ( 0, 8, 1, menusGrp );
tabLayout->addWidget(menusGrp,1,0,0);
///Scrollbar group
QVGroupBox *scrollGrp = new QVGroupBox(i18n("Scrollbars and Sliders"), page1);
QLabel* scrollBarStyleLabel;
QLabel* scrollBarWidthLabel;
QLabel* sliderStyleLabel;
paintGroove = new QCheckBox(i18n("Draw Scrollbar grooves"), scrollGrp);
scrollBarStyleLabel = new QLabel(scrollGrp);
scrollBarStyleLabel->setText(i18n("Scrollbar style : "));
scrollBarStyle = new QComboBox(i18n("Scrollbar style"), scrollGrp);
scrollBarStyle->setEditable(false);
scrollBarStyle->insertItem("Windows style");
scrollBarStyle->insertItem("Platinum style");
scrollBarStyle->insertItem("KDE style");
scrollBarStyle->insertItem("Next style");
scrollBarWidthLabel = new QLabel(scrollGrp);
scrollBarWidthLabel->setText(i18n("Scrollbar width : "));
scrollBarWidth = new QComboBox(i18n("Scrollbar width"), scrollGrp);
scrollBarWidth->setEditable(false);
scrollBarWidth->insertItem("Small");
scrollBarWidth->insertItem("Normal");
scrollBarWidth->insertItem("Large");
sliderStyleLabel = new QLabel(scrollGrp);
sliderStyleLabel->setText(i18n("Slider handle size : "));
sliderStyle = new QComboBox(i18n("Slider handle size"), scrollGrp);
sliderStyle->setEditable(false);
sliderStyle->insertItem("Small");
sliderStyle->insertItem("Medium");
sliderStyle->insertItem("Large");
tabLayout->addWidget(scrollGrp,1,1,0);
///Highlighting group
QVGroupBox *lightGrp = new QVGroupBox(i18n("Highlighting"), page1);
drawFocusRect = new QCheckBox(i18n("Colored focus rectangle"), lightGrp);
comboboxColored = new QCheckBox(i18n("Colored comboboxes handles"), lightGrp);
coloredMenuBar = new QCheckBox(i18n("Colored menu bar items"), lightGrp);
drawTabHighlight = new QCheckBox(i18n("Highlight active tab"), lightGrp);
inputFocusHighlight = new QCheckBox(i18n("Highlight focused input fields"), lightGrp);
tabLayout->addWidget(lightGrp,0,2,0);
///Other colors group
QVGroupBox *otherGrp = new QVGroupBox(i18n("Custom colors"), page1);
customFocusHighlightColor = new QCheckBox(i18n("Input fields highlight :"), otherGrp);
QHBox *hbox1 = new QHBox(otherGrp);
hbox1->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
focusHighlightColor = new KColorButton(hbox1);
customOverHighlightColor = new QCheckBox(i18n("Mouse hover highlight :"), otherGrp);
QHBox *hbox2 = new QHBox(otherGrp);
hbox2->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
overHighlightColor = new KColorButton(hbox2);
customCheckMarkColor = new QCheckBox(i18n("Checkmark/Radiobuttons :"), otherGrp);
QHBox *hbox3 = new QHBox(otherGrp);
hbox3->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
checkMarkColor = new KColorButton(hbox3);
customTabHighlightColor = new QCheckBox(i18n("Active tab highlight :"), otherGrp);
QHBox *hbox4 = new QHBox(otherGrp);
hbox4->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
tabHighlightColor = new KColorButton(hbox4);
tabLayout->addWidget(otherGrp,1,2,0);
///Init tab2
QWidget *page2 = new QWidget(tabWidget);
QLabel* lipstikLabel;
QLabel* authorLabel;
QLabel* authorAddressLabel;
QLabel* authorWebLabel;
QLabel* plastikLabel;
QLabel* alsoLabel;
QLabel* cuLabel;
QLabel* dnLabel;
QLabel* pqLabel;
QLabel* cxLabel;
QLabel* kpLabel;
QLabel* blLabel;
QLabel* ksLabel;
QLabel* peLabel;
QLabel* bastianLabel;
QLabel* pcbsdLabel;
QLabel* othersLabel;
layout = new QVBoxLayout(page2, 10, -1);
tabWidget->insertTab(page2, i18n("About"));
lipstikLabel = new QLabel(page2);
lipstikLabel->setText(i18n("Lipstik 2.2.3"));
lipstikLabel->setFrameStyle( QFrame::StyledPanel | QFrame::Raised );
authorLabel = new QLabel(page2);
authorLabel->setText(i18n(" Copyright 2004-2005-2006-2007 (C) Patrice Tremblay (Poplix)"));
authorAddressLabel = new QLabel(page2);
authorAddressLabel->setText(i18n(" poplixos@gmail.com"));
authorWebLabel = new QLabel(page2);
authorWebLabel->setText(i18n(" http://poplix.homelinux.com/lipstik"));
plastikLabel = new QLabel(page2);
plastikLabel->setText(i18n("Based on plastik [thanks to Sandro Giessl]"));
alsoLabel = new QLabel(page2);
alsoLabel->setText(i18n("Also based on :"));
cuLabel = new QLabel(page2);
cuLabel->setText(i18n(" QtCurve [thanks to Craig Drummond],"));
dnLabel = new QLabel(page2);
dnLabel->setText(i18n(" DotNET [thanks to Chris Lee],"));
pqLabel = new QLabel(page2);
pqLabel->setText(i18n(" PlastikQ [thanks to Martin Beck],"));
cxLabel = new QLabel(page2);
cxLabel->setText(i18n(" Comix [thanks to Jens Luetkens],"));
kpLabel = new QLabel(page2);
kpLabel->setText(i18n(" Krisp [thanks to Keith Meehl],"));
blLabel = new QLabel(page2);
blLabel->setText(i18n(" Ballistik [thanks to Florian Merz],"));
ksLabel = new QLabel(page2);
ksLabel->setText(i18n(" Kerastik [thanks to Victor Perez Q],"));
peLabel = new QLabel(page2);
peLabel->setText(i18n(" Polyester [thanks to Marco Martin]."));
bastianLabel = new QLabel(page2);
bastianLabel->setText(i18n("Thanks to Bastian Venthur, the Debian maintainer of kde-style-lipstik."));
pcbsdLabel = new QLabel(page2);
pcbsdLabel->setText(i18n("Thanks to Charles A. Landemaine, of PC-BSD, for the feature suggestion."));
othersLabel = new QLabel(page2);
othersLabel->setText(i18n("Special thanks to Dominique and all the kde-look.org users."));
layout->add(lipstikLabel);
layout->add(authorLabel);
layout->add(authorAddressLabel);
layout->add(authorWebLabel);
layout->addSpacing(10);
layout->add(plastikLabel);
layout->addSpacing(10);
layout->add(alsoLabel);
layout->add(cuLabel);
layout->add(dnLabel);
layout->add(pqLabel);
layout->add(cxLabel);
layout->add(kpLabel);
layout->add(blLabel);
layout->add(ksLabel);
layout->add(peLabel);
layout->addSpacing(10);
layout->add(bastianLabel);
layout->add(pcbsdLabel);
layout->add(othersLabel);
///Populate!
QSettings s;
origReverseGradients = s.readBoolEntry("/lipstikstyle/Settings/reverseGradients", false);
reverseGradients->setChecked(origReverseGradients);
origPaintGroove = s.readBoolEntry("/lipstikstyle/Settings/paintGroove", true);
paintGroove->setChecked(origPaintGroove);
origSharperMenuGradient = s.readBoolEntry("/lipstikstyle/Settings/sharperMenuGradient", false);
sharperMenuGradient->setChecked(origSharperMenuGradient);
origAlterMenuGradients = s.readBoolEntry("/lipstikstyle/Settings/alterMenuGradients", true);
alterMenuGradients->setChecked(origAlterMenuGradients);
origMenuLeftSideBar = s.readBoolEntry("/lipstikstyle/Settings/menuLeftSideBar", true);
menuLeftSideBar->setChecked(origMenuLeftSideBar);
origFlatStripe = s.readBoolEntry("/lipstikstyle/Settings/flatStripe", false);
flatStripe->setChecked(origFlatStripe);
origComboboxColored = s.readBoolEntry("/lipstikstyle/Settings/comboboxColored", false);
comboboxColored->setChecked(origComboboxColored);
origColoredMenuBar = s.readBoolEntry("/lipstikstyle/Settings/coloredMenuBar", false);
coloredMenuBar->setChecked(origColoredMenuBar);
origDrawTabHighlight = s.readBoolEntry("/lipstikstyle/Settings/drawTabHighlight", true);
drawTabHighlight->setChecked(origDrawTabHighlight);
origMenuSpacing = s.readNumEntry("/lipstikstyle/Settings/menuSpacing", 5);
menuSpacing->setValue(origMenuSpacing);
origToolBarSpacing = s.readNumEntry("/lipstikstyle/Settings/toolBarSpacing", 0);
toolBarSpacing->setValue(origToolBarSpacing);
origScrollBarStyle = s.readEntry("/lipstikstyle/Settings/scrollBarStyle", "WindowsStyleScrollBar");
scrollBarStyle->setCurrentItem(scrollBarItem(origScrollBarStyle));
origScrollBarWidth = s.readEntry("/lipstikstyle/Settings/scrollBarWidth", "Small");
scrollBarWidth->setCurrentItem(scrollBarWidthItem(origScrollBarWidth));
origSliderStyle = s.readEntry("/lipstikstyle/Settings/sliderStyle", "sliderLipstikStyle");
sliderStyle->setCurrentItem(sliderItem(origSliderStyle));
origDrawStatusBarFrame = s.readBoolEntry("/lipstikstyle/Settings/drawStatusBarFrame", false);
drawStatusBarFrame->setChecked(origDrawStatusBarFrame);
origDrawToolBarHandle = s.readBoolEntry("/lipstikstyle/Settings/drawToolBarHandle", true);
drawToolBarHandle->setChecked(origDrawToolBarHandle);
origAnimProgressBar = s.readBoolEntry("/lipstikstyle/Settings/animateProgressBar", false);
animateProgressBar->setChecked(origAnimProgressBar);
origDrawToolBarSeparator = s.readBoolEntry("/lipstikstyle/Settings/drawToolBarSeparator", true);
drawToolBarSeparator->setChecked(origDrawToolBarSeparator);
origDrawToolBarGradient = s.readBoolEntry("/lipstikstyle/Settings/drawToolBarGradient", false);
drawToolBarGradient->setChecked(origDrawToolBarGradient);
origInvertBarGrad = s.readBoolEntry("/lipstikstyle/Settings/invertBarGrad", true);
invertBarGrad->setChecked(origInvertBarGrad);
origDrawToolBarItemSeparator = s.readBoolEntry("/lipstikstyle/Settings/drawToolBarItemSeparator", true);
drawToolBarItemSeparator->setChecked(origDrawToolBarItemSeparator);
origDrawFocusRect = s.readBoolEntry("/lipstikstyle/Settings/drawFocusRect", true);
drawFocusRect->setChecked(origDrawFocusRect);
origFlatHeaders = s.readBoolEntry("/lipstikstyle/Settings/flatHeaders", true);
flatHeaders->setChecked(origFlatHeaders);
origTickCheckMark = s.readBoolEntry("/lipstikstyle/Settings/tickCheckMark", true);
tickCheckMark->setChecked(origTickCheckMark);
origDrawTriangularExpander = s.readBoolEntry("/lipstikstyle/Settings/drawTriangularExpander", false);
drawTriangularExpander->setChecked(origDrawTriangularExpander);
origInputFocusHighlight = s.readBoolEntry("/lipstikstyle/Settings/inputFocusHighlight", true);
inputFocusHighlight->setChecked(origInputFocusHighlight);
origCustomOverHighlightColor = s.readBoolEntry("/lipstikstyle/Settings/customOverHighlightColor", false);
customOverHighlightColor->setChecked(origCustomOverHighlightColor);
origOverHighlightColor = s.readEntry("/lipstikstyle/Settings/overHighlightColor", "/Qt/KWinPalette/activeBackground");
overHighlightColor->setColor(origOverHighlightColor);
origCustomMenuStripeColor = s.readBoolEntry("/lipstikstyle/Settings/customMenuStripeColor", false);
customMenuStripeColor->setChecked(origCustomMenuStripeColor);
origMenuStripeColor = s.readEntry("/lipstikstyle/Settings/menuStripeColor", "/Qt/KWinPalette/activeBackground");
menuStripeColor->setColor(origMenuStripeColor);
origCustomFocusHighlightColor = s.readBoolEntry("/lipstikstyle/Settings/customFocusHighlightColor", false);
customFocusHighlightColor->setChecked(origCustomFocusHighlightColor);
origFocusHighlightColor = s.readEntry("/lipstikstyle/Settings/focusHighlightColor", "/Qt/KWinPalette/activeBackground");
focusHighlightColor->setColor(origFocusHighlightColor);
origCustomCheckMarkColor = s.readBoolEntry("/lipstikstyle/Settings/customCheckMarkColor", false);
customCheckMarkColor->setChecked(origCustomCheckMarkColor);
origCheckMarkColor = s.readEntry("/lipstikstyle/Settings/checkMarkColor", "/Qt/KWinPalette/activeBackground");
checkMarkColor->setColor(origCheckMarkColor);
origCustomTabHighlightColor = s.readBoolEntry("/lipstikstyle/Settings/customTabHighlightColor", false);
customTabHighlightColor->setChecked(origCustomTabHighlightColor);
origTabHighlightColor = s.readEntry("/lipstikstyle/Settings/tabHighlightColor", "/Qt/KWinPalette/activeBackground");
tabHighlightColor->setColor(origTabHighlightColor);
connect(reverseGradients, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(paintGroove, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(sharperMenuGradient, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(alterMenuGradients, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(menuLeftSideBar, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(flatStripe, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawStatusBarFrame, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawToolBarHandle, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(comboboxColored, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(coloredMenuBar, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawTabHighlight, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(menuSpacing, SIGNAL( valueChanged(int) ), SLOT( updateChanged() ) );
connect(toolBarSpacing, SIGNAL( valueChanged(int) ), SLOT( updateChanged() ) );
connect(scrollBarStyle, SIGNAL( activated(int) ), SLOT( updateChanged() ) );
connect(scrollBarWidth, SIGNAL( activated(int) ), SLOT( updateChanged() ) );
connect(sliderStyle, SIGNAL( activated(int) ), SLOT( updateChanged() ) );
connect(animateProgressBar, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawToolBarSeparator, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawToolBarGradient, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(invertBarGrad, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawToolBarItemSeparator, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawFocusRect, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(flatHeaders, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(tickCheckMark, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(drawTriangularExpander, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(inputFocusHighlight, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(customOverHighlightColor, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(overHighlightColor, SIGNAL( pressed() ), SLOT( updateChanged() ) );
connect(customMenuStripeColor, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(menuStripeColor, SIGNAL( pressed() ), SLOT( updateChanged() ) );
connect(customFocusHighlightColor, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(focusHighlightColor, SIGNAL( pressed() ), SLOT( updateChanged() ) );
connect(customCheckMarkColor, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(checkMarkColor, SIGNAL( pressed() ), SLOT( updateChanged() ) );
connect(customTabHighlightColor, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
connect(tabHighlightColor, SIGNAL( pressed() ), SLOT( updateChanged() ) );
//Menu Stripe
if ( menuLeftSideBar->isChecked() ) {
customMenuStripeColor->setEnabled(true);
flatStripe->setEnabled(true);
} else {
customMenuStripeColor->setEnabled(false);
flatStripe->setEnabled(false);
}
//Toolbar gradients.
if ( drawToolBarGradient->isChecked() ) {
invertBarGrad->setEnabled(true);
} else {
invertBarGrad->setEnabled(false);
}
if ( customMenuStripeColor->isChecked() && customMenuStripeColor->isEnabled())
menuStripeColor->setEnabled(true);
else
menuStripeColor->setEnabled(false);
//Input Focus
if ( inputFocusHighlight->isChecked() )
customFocusHighlightColor->setEnabled(true);
else
customFocusHighlightColor->setEnabled(false);
if ( customFocusHighlightColor->isChecked() && customFocusHighlightColor->isEnabled())
focusHighlightColor->setEnabled(true);
else
focusHighlightColor->setEnabled(false);
//Custom checkmark color.
if ( customCheckMarkColor->isChecked() )
checkMarkColor->setEnabled(true);
else
checkMarkColor->setEnabled(false);
//Custom tab highlight color.
if ( customTabHighlightColor->isChecked() )
tabHighlightColor->setEnabled(true);
else
tabHighlightColor->setEnabled(false);
if ( customOverHighlightColor->isChecked() )
overHighlightColor->setEnabled(true);
else
overHighlightColor->setEnabled(false);
}
LipstikStyleConfig::~LipstikStyleConfig()
{
}
void LipstikStyleConfig::save()
{
QSettings s;
s.writeEntry("/lipstikstyle/Settings/reverseGradients", reverseGradients->isChecked());
s.writeEntry("/lipstikstyle/Settings/paintGroove", paintGroove->isChecked());
s.writeEntry("/lipstikstyle/Settings/sharperMenuGradient", sharperMenuGradient->isChecked());
s.writeEntry("/lipstikstyle/Settings/alterMenuGradients", alterMenuGradients->isChecked());
s.writeEntry("/lipstikstyle/Settings/menuLeftSideBar", menuLeftSideBar->isChecked());
s.writeEntry("/lipstikstyle/Settings/flatStripe", flatStripe->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawStatusBarFrame", drawStatusBarFrame->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawToolBarHandle", drawToolBarHandle->isChecked());
s.writeEntry("/lipstikstyle/Settings/comboboxColored", comboboxColored->isChecked());
s.writeEntry("/lipstikstyle/Settings/coloredMenuBar", coloredMenuBar->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawTabHighlight", drawTabHighlight->isChecked());
s.writeEntry("/lipstikstyle/Settings/menuSpacing", menuSpacing->value());
s.writeEntry("/lipstikstyle/Settings/toolBarSpacing", toolBarSpacing->value());
s.writeEntry("/lipstikstyle/Settings/scrollBarStyle", scrollBarType(scrollBarStyle->currentItem()));
s.writeEntry("/lipstikstyle/Settings/scrollBarWidth", scrollBarWidthType(scrollBarWidth->currentItem()));
s.writeEntry("/lipstikstyle/Settings/sliderStyle", sliderType(sliderStyle->currentItem()));
s.writeEntry("/lipstikstyle/Settings/animateProgressBar", animateProgressBar->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawToolBarSeparator", drawToolBarSeparator->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawToolBarGradient", drawToolBarGradient->isChecked());
s.writeEntry("/lipstikstyle/Settings/invertBarGrad", invertBarGrad->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawToolBarItemSeparator", drawToolBarItemSeparator->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawFocusRect", drawFocusRect->isChecked());
s.writeEntry("/lipstikstyle/Settings/flatHeaders", flatHeaders->isChecked());
s.writeEntry("/lipstikstyle/Settings/tickCheckMark", tickCheckMark->isChecked());
s.writeEntry("/lipstikstyle/Settings/drawTriangularExpander", drawTriangularExpander->isChecked());
s.writeEntry("/lipstikstyle/Settings/inputFocusHighlight", inputFocusHighlight->isChecked());
s.writeEntry("/lipstikstyle/Settings/customOverHighlightColor", customOverHighlightColor->isChecked());
s.writeEntry("/lipstikstyle/Settings/overHighlightColor", QColor(overHighlightColor->color()).name());
s.writeEntry("/lipstikstyle/Settings/customMenuStripeColor", customMenuStripeColor->isChecked());
s.writeEntry("/lipstikstyle/Settings/menuStripeColor", QColor(menuStripeColor->color()).name());
s.writeEntry("/lipstikstyle/Settings/customFocusHighlightColor", customFocusHighlightColor->isChecked());
s.writeEntry("/lipstikstyle/Settings/focusHighlightColor", QColor(focusHighlightColor->color()).name());
s.writeEntry("/lipstikstyle/Settings/customCheckMarkColor", customCheckMarkColor->isChecked());
s.writeEntry("/lipstikstyle/Settings/checkMarkColor", QColor(checkMarkColor->color()).name());
s.writeEntry("/lipstikstyle/Settings/customTabHighlightColor", customTabHighlightColor->isChecked());
s.writeEntry("/lipstikstyle/Settings/tabHighlightColor", QColor(tabHighlightColor->color()).name());
}
void LipstikStyleConfig::defaults()
{
reverseGradients->setChecked(false);
paintGroove->setChecked(true);
sharperMenuGradient->setChecked(false);
alterMenuGradients->setChecked(true);
menuLeftSideBar->setChecked(true);
flatStripe->setChecked(false);
menuSpacing->setValue(5);
toolBarSpacing->setValue(0);
drawStatusBarFrame->setChecked(false);
drawToolBarHandle->setChecked(true);
comboboxColored->setChecked(false);
coloredMenuBar->setChecked(false);
drawTabHighlight->setChecked(true);
scrollBarStyle->setCurrentItem(0);
scrollBarWidth->setCurrentItem(0);
sliderStyle->setCurrentItem(1);
animateProgressBar->setChecked(false);
drawToolBarSeparator->setChecked(true);
drawToolBarGradient->setChecked(false);
invertBarGrad->setChecked(true);
drawToolBarItemSeparator->setChecked(true);
drawFocusRect->setChecked(true);
flatHeaders->setChecked(true);
tickCheckMark->setChecked(true);
drawTriangularExpander->setChecked(false);
inputFocusHighlight->setChecked(true);
customOverHighlightColor->setChecked(false);
overHighlightColor->setColor("/Qt/KWinPalette/activeBackground");
customMenuStripeColor->setChecked(false);
menuStripeColor->setColor("/Qt/KWinPalette/activeBackground");
customFocusHighlightColor->setChecked(false);
focusHighlightColor->setColor("/Qt/KWinPalette/activeBackground");
customCheckMarkColor->setChecked(false);
checkMarkColor->setColor("/Qt/KWinPalette/activeBackground");
customTabHighlightColor->setChecked(false);
tabHighlightColor->setColor("/Qt/KWinPalette/activeBackground");
//updateChanged would be done by setChecked already
}
void LipstikStyleConfig::updateChanged()
{
if ( customOverHighlightColor->isChecked() )
overHighlightColor->setEnabled(true);
else
overHighlightColor->setEnabled(false);
if ( drawToolBarGradient->isChecked() )
invertBarGrad->setEnabled(true);
else
invertBarGrad->setEnabled(false);
//Stripe
if ( menuLeftSideBar->isChecked() ) {
customMenuStripeColor->setEnabled(true);
flatStripe->setEnabled(true);
if ( customMenuStripeColor->isEnabled() )
menuStripeColor->setEnabled(true);
else
menuStripeColor->setEnabled(false);
} else {
customMenuStripeColor->setEnabled(false);
menuStripeColor->setEnabled(false);
flatStripe->setEnabled(false);
}
if ( customMenuStripeColor->isChecked() && customMenuStripeColor->isEnabled() )
menuStripeColor->setEnabled(true);
else
menuStripeColor->setEnabled(false);
//Input Focus
if ( inputFocusHighlight->isChecked() ) {
customFocusHighlightColor->setEnabled(true);
if ( customFocusHighlightColor->isEnabled() )
focusHighlightColor->setEnabled(true);
else
focusHighlightColor->setEnabled(false);
} else {
customFocusHighlightColor->setEnabled(false);
focusHighlightColor->setEnabled(false);
}
if ( customFocusHighlightColor->isChecked() && customFocusHighlightColor->isEnabled() )
focusHighlightColor->setEnabled(true);
else
focusHighlightColor->setEnabled(false);
if ( customCheckMarkColor->isChecked() )
checkMarkColor->setEnabled(true);
else
checkMarkColor->setEnabled(false);
if ( customTabHighlightColor->isChecked() )
tabHighlightColor->setEnabled(true);
else
tabHighlightColor->setEnabled(false);
if ((animateProgressBar->isChecked() == origAnimProgressBar) &&
(reverseGradients->isChecked() == origReverseGradients) &&
(paintGroove->isChecked() == origPaintGroove) &&
(sharperMenuGradient->isChecked() == origSharperMenuGradient) &&
(alterMenuGradients->isChecked() == origAlterMenuGradients) &&
(menuLeftSideBar->isChecked() == origMenuLeftSideBar) &&
(flatStripe->isChecked() == origFlatStripe) &&
(menuSpacing->value() == origMenuSpacing) &&
(toolBarSpacing->value() == origToolBarSpacing) &&
(drawStatusBarFrame->isChecked() == origDrawStatusBarFrame) &&
(drawToolBarHandle->isChecked() == origDrawToolBarHandle) &&
(comboboxColored->isChecked() == origComboboxColored) &&
(coloredMenuBar->isChecked() == origColoredMenuBar) &&
(drawTabHighlight->isChecked() == origDrawTabHighlight) &&
(drawToolBarSeparator->isChecked() == origDrawToolBarSeparator) &&
(drawToolBarGradient->isChecked() == origDrawToolBarGradient) &&
(invertBarGrad->isChecked() == origInvertBarGrad) &&
(drawToolBarItemSeparator->isChecked() == origDrawToolBarItemSeparator) &&
(drawFocusRect->isChecked() == origDrawFocusRect) &&
(flatHeaders->isChecked() == origFlatHeaders) &&
(tickCheckMark->isChecked() == origTickCheckMark) &&
(drawTriangularExpander->isChecked() == origDrawTriangularExpander) &&
(inputFocusHighlight->isChecked() == origInputFocusHighlight) &&
(customOverHighlightColor->isChecked() == origCustomOverHighlightColor) &&
(overHighlightColor->color() == origOverHighlightColor) &&
(customMenuStripeColor->isChecked() == origCustomMenuStripeColor) &&
(menuStripeColor->color() == origMenuStripeColor) &&
(customFocusHighlightColor->isChecked() == origCustomFocusHighlightColor) &&
(focusHighlightColor->color() == origFocusHighlightColor) &&
(customCheckMarkColor->isChecked() == origCustomCheckMarkColor) &&
(checkMarkColor->color() == origCheckMarkColor) &&
(customTabHighlightColor->isChecked() == origCustomTabHighlightColor) &&
(tabHighlightColor->color() == origTabHighlightColor) &&
(scrollBarStyle->currentText() == origScrollBarStyle) &&
(scrollBarWidth->currentText() == origScrollBarWidth) &&
(sliderStyle->currentText() == origSliderStyle)
)
emit changed(false);
else
emit changed(true);
}
//Scrollbar types
QString LipstikStyleConfig::scrollBarType( int listnr )
{
switch ( listnr ) {
case 0:
return QString("WindowsStyleScrollBar");
case 1:
return QString("PlatinumStyleScrollBar");
case 2:
return QString("ThreeButtonScrollBar");
case 3:
return QString("NextStyleScrollBar");
default:
return QString("PlatinumStyleScrollBar");
}
}
int LipstikStyleConfig::scrollBarItem( QString kSBType )
{
if( !strcmp(kSBType,"WindowsStyleScrollBar") )
return 0;
else if( !strcmp(kSBType,"PlatinumStyleScrollBar") )
return 1;
else if( !strcmp(kSBType,"ThreeButtonScrollBar") )
return 2;
else if( !strcmp(kSBType,"NextStyleScrollBar") )
return 3;
else
return 1;
}
//Scrollbar Widths
QString LipstikStyleConfig::scrollBarWidthType( int widthListnr )
{
switch ( widthListnr ) {
case 0:
return QString("Small");
case 1:
return QString("Normal");
case 2:
return QString("Large");
default:
return QString("Small");
}
}
int LipstikStyleConfig::scrollBarWidthItem( QString kSBWidthType )
{
if( !strcmp(kSBWidthType,"Small") )
return 0;
else if( !strcmp(kSBWidthType,"Normal") )
return 1;
else if( !strcmp(kSBWidthType,"Large") )
return 2;
else
return 0;
}
//Slider types
int LipstikStyleConfig::sliderItem( QString kSliderType )
{
if( !strcmp(kSliderType,"sliderPlastikStyle") )
return 0;
else if( !strcmp(kSliderType,"sliderLipstikStyle") )
return 1;
else if( !strcmp(kSliderType,"sliderGtkStyle") )
return 2;
else
return 2;
}
QString LipstikStyleConfig::sliderType( int sliderlistnr )
{
switch ( sliderlistnr ) {
case 0:
return QString("sliderPlastikStyle");
case 1:
return QString("sliderLipstikStyle");
case 2:
return QString("sliderGtkStyle");
default:
return QString("sliderGtkStyle");
}
}
#include "lipstikconf.moc"

@ -0,0 +1,157 @@
/*
Copyright (C) 2004-2007 Patrice Tremblay <tremblaypatrice@yahoo.fr>
http://www.poplix.info/lipstik
based on plastik:
Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
based on the Keramik configuration dialog:
Copyright (c) 2003 Maksim Orlovich <maksim.orlovich@kdemail.net>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef LIPSTIK_CONF_H
#define LIPSTIK_CONF_H
class QCheckBox;
class LipstikStyleConfig: public QWidget
{
Q_OBJECT
public:
LipstikStyleConfig(QWidget* parent);
~LipstikStyleConfig();
//This signal and the next two slots are the plugin
//page interface
signals:
void changed(bool);
public slots:
void save();
void defaults();
//Everything below this is internal.
protected slots:
void updateChanged();
protected:
//We store settings directly in widgets to
//avoid the hassle of sync'ing things
QCheckBox* animateProgressBar;
QCheckBox* reverseGradients;
QString scrollBarType( int listnr );
int scrollBarItem( QString kSBType );
QComboBox* scrollBarStyle;
QString scrollBarWidthType( int widthListnr );
int scrollBarWidthItem( QString kSBWidth );
QComboBox* scrollBarWidth;
QString sliderType( int sliderlistnr );
int sliderItem( QString kSliderType );
QComboBox* sliderStyle;
QSpinBox* menuSpacing;
QSpinBox* toolBarSpacing;
QCheckBox* paintGroove;
QCheckBox* sharperMenuGradient;
QCheckBox* alterMenuGradients;
QCheckBox* menuLeftSideBar;
QCheckBox* drawStatusBarFrame;
QCheckBox* drawToolBarHandle;
QCheckBox* comboboxColored;
QCheckBox* coloredMenuBar;
QCheckBox* kickerHighlight;
QCheckBox* drawTabHighlight;
QCheckBox* flatStripe;
QCheckBox* compressedMenus;
QCheckBox* drawToolBarSeparator;
QCheckBox* drawToolBarGradient;
QCheckBox* invertBarGrad;
QCheckBox* drawToolBarItemSeparator;
QCheckBox* drawFocusRect;
QCheckBox* newKickerButtons;
QCheckBox* flatHeaders;
QCheckBox* tickCheckMark;
QCheckBox* drawTriangularExpander;
QCheckBox* inputFocusHighlight;
QCheckBox* customOverHighlightColor;
KColorButton* overHighlightColor;
QCheckBox* customMenuStripeColor;
KColorButton* menuStripeColor;
QCheckBox* customFocusHighlightColor;
KColorButton* focusHighlightColor;
QCheckBox* customCheckMarkColor;
KColorButton* checkMarkColor;
QCheckBox* customTabHighlightColor;
KColorButton* tabHighlightColor;
//Original settings, for accurate dirtiness tracking
bool origAnimProgressBar;
bool origReverseGradients;
bool origPaintGroove;
bool origSharperMenuGradient;
bool origAlterMenuGradients;
bool origMenuLeftSideBar;
bool origDrawStatusBarFrame;
bool origDrawToolBarHandle;
bool origComboboxColored;
bool origColoredMenuBar;
bool origKickerHighlight;
bool origDrawTabHighlight;
bool origFlatStripe;
bool origCompressedMenus;
bool origDrawToolBarSeparator;
bool origDrawToolBarGradient;
bool origInvertBarGrad;
bool origDrawToolBarItemSeparator;
bool origDrawFocusRect;
bool origNewKickerButtons;
bool origFlatHeaders;
bool origTickCheckMark;
bool origDrawTriangularExpander;
bool origInputFocusHighlight;
bool origCustomOverHighlightColor;
QColor origOverHighlightColor;
bool origCustomMenuStripeColor;
QColor origMenuStripeColor;
bool origCustomFocusHighlightColor;
QColor origFocusHighlightColor;
bool origCustomCheckMarkColor;
QColor origCheckMarkColor;
bool origCustomTabHighlightColor;
QColor origTabHighlightColor;
QString origScrollBarStyle;
QString origScrollBarWidth;
QString origSliderStyle;
int origMenuSpacing;
int origToolBarSpacing;
};
#endif

File diff suppressed because it is too large Load Diff

@ -0,0 +1,404 @@
/* Lipstik widget style for KDE 3
Copyright (C) 2004-2007 Patrice Tremblay <poplixos@gmail.com>
http://www.poplix.info/lipstik
based on Plastik:
Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
based on the KDE style "dotNET":
Copyright (C) 2001-2002, Chris Lee <clee@kde.org>
Carsten Pfeiffer <pfeiffer@kde.org>
Karol Szwed <gallium@kde.org>
Drawing routines completely reimplemented from KDE3 HighColor, which was
originally based on some stuff from the KDE2 HighColor.
based on drawing routines of the style "Keramik":
Copyright (c) 2002 Malte Starostik <malte@kde.org>
(c) 2002,2003 Maksim Orlovich <mo002j@mail.rochester.edu>
based on the KDE3 HighColor Style
Copyright (C) 2001-2002 Karol Szwed <gallium@kde.org>
(C) 2001-2002 Fredrik Höglund <fredrik@kde.org>
Drawing routines adapted from the KDE2 HCStyle,
Copyright (C) 2000 Daniel M. Duley <mosfet@kde.org>
(C) 2000 Dirk Mueller <mueller@kde.org>
(C) 2001 Martijn Klingens <klingens@kde.org>
Progressbar code based on KStyle,
Copyright (C) 2001-2002 Karol Szwed <gallium@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 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 __LIPSTIK_H
#define __LIPSTIK_H
#include <kstyle.h>
#include <qbitmap.h>
#include <qintcache.h>
#define u_arrow -4,1, 2,1, -3,0, 1,0, -2,-1, 0,-1, -1,-2
#define d_arrow -4,-2, 2,-2, -3,-1, 1,-1, -2,0, 0,0, -1,1
#define l_arrow 0,-3, 0,3,-1,-2,-1,2,-2,-1,-2,1,-3,0
#define r_arrow -2,-3,-2,3,-1,-2, -1,2,0,-1,0,1,1,0
#define QCOORDARRLEN(x) sizeof(x)/(sizeof(QCOORD)*2)
class QSettings;
class QTab;
class QTimer;
class LipstikStyle : public KStyle
{
Q_OBJECT
public:
LipstikStyle();
virtual ~LipstikStyle();
void polish(QApplication* app );
void polish(QWidget* widget );
void unPolish(QWidget* widget );
void drawKStylePrimitive(KStylePrimitive kpe,
QPainter* p,
const QWidget* widget,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption& = QStyleOption::Default ) const;
void drawPrimitive(PrimitiveElement pe,
QPainter *p,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption &opt = 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 drawControlMask( ControlElement, QPainter *, const QWidget *, const QRect &, const QStyleOption &) 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;
int pixelMetric(PixelMetric m,
const QWidget *widget = 0 ) const;
QRect subRect(SubRect r,
const QWidget *widget ) const;
QRect querySubControlMetrics(ComplexControl control,
const QWidget *widget,
SubControl subcontrol,
const QStyleOption &opt = QStyleOption::Default ) const;
void drawComplexControlMask(QStyle::ComplexControl c,
QPainter *p,
const QWidget *w,
const QRect &r,
const QStyleOption &o=QStyleOption::Default) const;
QSize sizeFromContents(QStyle::ContentsType t,
const QWidget *w,
const QSize &s,
const QStyleOption &o) const;
int styleHint(StyleHint, const QWidget * = 0,
const QStyleOption & = QStyleOption::Default,
QStyleHintReturn * = 0 ) const;
protected:
enum TabPosition
{
First = 0,
Middle,
Last,
Single // only one tab!
};
enum ColorType
{
ButtonContour,
DragButtonContour,
DragButtonSurface,
PanelContour,
PanelLight,
PanelLight2,
PanelDark,
PanelDark2,
MouseOverHighlight,
MenuStripeColor,
FocusHighlight,
CheckMark,
TabHighlight
// Arrows
};
enum WidgetState
{
IsEnabled,
IsPressed, // implies IsEnabled
IsHighlighted, // implies IsEnabled
IsDisabled
};
// the only way i see to provide all these options
// to renderContour/renderSurface...
enum SurfaceFlags {
Draw_Left = 0x00000001,
Draw_Right = 0x00000002,
Draw_Top = 0x00000004,
Draw_Bottom = 0x00000008,
Highlight_Left = 0x00000010, // surface
Highlight_Right = 0x00000020, // surface
Highlight_Top = 0x00000040, // surface
Highlight_Bottom = 0x00000080, // surface
Is_Sunken = 0x00000100, // surface
Is_Horizontal = 0x00000200, // surface
Is_Highlight = 0x00000400, // surface
Is_Default = 0x00000800, // surface
Is_Disabled = 0x00001000,
Round_UpperLeft = 0x00002000,
Round_UpperRight = 0x00004000,
Round_BottomLeft = 0x00008000,
Round_BottomRight = 0x00010000,
Draw_AlphaBlend = 0x00020000
};
void renderContour(QPainter *p,
const QRect &r,
const QColor &backgroundColor,
const QColor &contourColor,
const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const;
void renderMask(QPainter *p,
const QRect &r,
const QColor &color,
const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const;
void renderSurface(QPainter *p,
const QRect &r,
const QColor &backgroundColor,
const QColor &buttonColor,
const QColor &highlightColor,
int intensity = 5,
const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|
Is_Horizontal) const;
inline void renderPixel(QPainter *p,
const QPoint &pos,
const int alpha,
const QColor &color,
const QColor &background = QColor(),
bool fullAlphaBlend = true) const;
void renderButton(QPainter *p,
const QRect &r,
const QColorGroup &g,
bool sunken = false,
bool mouseOver = false,
bool horizontal = true,
bool enabled = true,
bool khtmlMode = false) const;
void renderPanel(QPainter *p,
const QRect &r,
const QColorGroup &g,
const bool pseudo3d = true,
const bool sunken = true) const;
void renderDot(QPainter *p,
const QPoint &point,
const QColor &baseColor,
const bool thick = false,
const bool sunken = false) const;
void renderGradient(QPainter *p,
const QRect &r,
const QColor &c1,
const QColor &c2,
bool horizontal = true) const;
void renderTab(QPainter *p,
const QRect &r,
const QColorGroup &g,
bool mouseOver = false,
const bool selected = false,
const bool bottom = false,
const TabPosition pos = Middle,
const bool triangular = false,
const bool cornerWidget = false) const;
virtual void renderMenuBlendPixmap( KPixmap& pix, const QColorGroup& cg,
const QPopupMenu* popup ) const;
bool eventFilter(QObject *, QEvent *);
QWidget* hoverWidget;
protected slots:
void khtmlWidgetDestroyed(QObject* w);
//Animation slots.
void updateProgressPos();
void progressBarDestroyed(QObject* bar);
inline QColor getColor(const QColorGroup &cg, const ColorType t, const bool enabled = true)const;
inline QColor getColor(const QColorGroup &cg, const ColorType t, const WidgetState s)const;
private:
// Disable copy constructor and = operator
LipstikStyle( const LipstikStyle & );
LipstikStyle& operator=( const LipstikStyle & );
bool kickerMode, kornMode;
mutable bool flatMode;
int _contrast;
int _menuSpacing;
int _toolBarSpacing;
bool _scrollBarLines;
bool _animateProgressBar;
bool _drawToolBarSeparator;
bool _drawToolBarGradient;
bool _drawToolBarItemSeparator;
bool _drawFocusRect;
bool _drawTriangularExpander;
bool _inputFocusHighlight;
bool _customOverHighlightColor;
bool _customFocusHighlightColor;
bool _customCheckMarkColor;
bool _customTabHighlightColor;
bool _drawStatusBarFrame;
bool _paintGroove;
bool _flatHeaders;
bool _reverseGradients;
bool _invertBarGrad;
bool _drawTabHighlight;
bool _drawToolBarHandle;
bool _coloredMenuBar;
bool _menuLeftSideBar;
bool _customMenuStripeColor;
bool _alterMenuGradients;
bool _sharperMenuGradient;
bool _comboboxColored;
bool _tickCheckMark;
bool _flatStripe;
QString _scrollBarStyle;
QString _scrollBarWidth;
QString _sliderStyle;
QColor _overHighlightColor;
QColor _focusHighlightColor;
QColor _checkMarkColor;
QColor _tabHighlightColor;
QColor _menuStripeColor;
QColor _defaultMenuStripeColor;
// QColor _arrowColor;
QTab *hoverTab;
// track khtml widgets.
QMap<const QWidget*,bool> khtmlWidgets;
//Animation support.
QMap<QWidget*, int> progAnimWidgets;
// pixmap cache.
enum CacheEntryType {
cSurface,
cGradientTile,
cAlphaDot
};
struct CacheEntry
{
CacheEntryType type;
int width;
int height;
QRgb c1Rgb;
QRgb c2Rgb;
bool horizontal;
QPixmap* pixmap;
CacheEntry(CacheEntryType t, int w, int h, QRgb c1, QRgb c2 = 0,
bool hor = false, QPixmap* p = 0 ):
type(t), width(w), height(h), c1Rgb(c1), c2Rgb(c2), horizontal(hor), pixmap(p)
{}
~CacheEntry()
{
delete pixmap;
}
int key()
{
// create an int key from the properties which is used to refer to entries in the QIntCache.
// the result may not be 100% correct as we don't have so much space in one integer -- use
// == operator after find to make sure we got the right one. :)
return horizontal ^ (type<<1) ^ (width<<5) ^ (height<<10) ^ (c1Rgb<<19) ^ (c2Rgb<<22);
}
bool operator == (const CacheEntry& other)
{
bool match = (type == other.type) &&
(width == other.width) &&
(height == other.height) &&
(c1Rgb == other.c1Rgb) &&
(c1Rgb == other.c1Rgb) &&
(horizontal = other.horizontal);
// if(!match) {
// qDebug("operator ==: CacheEntries don't match!");
// qDebug("width: %d\t\tother width: %d", width, other.width);
// qDebug("height: %d\t\tother height: %d", height, other.height);
// qDebug("fgRgb: %d\t\tother fgRgb: %d", fgRgb, other.fgRgb);
// qDebug("bgRgb: %d\t\tother bgRgb: %d", bgRgb, other.bgRgb);
// qDebug("surfaceFlags: %d\t\tother surfaceFlags: %d", surfaceFlags, other.surfaceFlags);
// }
return match;
}
};
QIntCache<CacheEntry> *pixmapCache;
// For renderFocusRect
mutable QBitmap *verticalDots;
mutable QBitmap *horizontalDots;
// For KPE_ListViewBranch
mutable QBitmap *verticalLine;
mutable QBitmap *horizontalLine;
// For progress bar animation
QTimer *animationTimer;
};
#endif // __LIPSTIK_H

@ -0,0 +1,7 @@
[Misc]
Name=Lipstik
ConfigPage=kstyle_lipstik_config
Comment=A purified style
Comment[fr]=Un style pure
[KDE]
WidgetStyle=Lipstik

@ -0,0 +1,27 @@
[Color Scheme]
Name=Lipstik Noble
activeBackground=74,121,205
activeBlend=62,145,235
activeForeground=255,255,255
activeTitleBtnBg=238,238,230
alternateBackground=238,246,255
background=235,233,233
buttonBackground=246,244,244
buttonForeground=0,0,0
contrast=5
foreground=0,0,0
frame=238,238,230
handle=238,238,230
inactiveBackground=235,233,233
inactiveBlend=143,159,180
inactiveForeground=255,255,255
inactiveFrame=238,238,230
inactiveHandle=238,238,230
inactiveTitleBtnBg=238,238,230
linkColor=0,0,192
selectBackground=81,134,225
selectForeground=255,255,255
shadeSortColumn=true
visitedLinkColor=128,0,128
windowBackground=255,255,255
windowForeground=0,0,0

@ -0,0 +1,26 @@
[Color Scheme]
Name=Lipstik Standard
activeBackground=92,143,253
activeBlend=62,145,235
activeForeground=255,255,255
activeTitleBtnBg=238,238,230
alternateBackground=238,246,255
background=238,238,230
buttonBackground=238,234,222
buttonForeground=0,0,0
contrast=5
foreground=0,0,0
frame=238,238,230
handle=238,238,230
inactiveBackground=143,159,180
inactiveBlend=143,159,180
inactiveForeground=255,255,255
inactiveFrame=238,238,230
inactiveHandle=238,238,230
inactiveTitleBtnBg=238,238,230
linkColor=0,0,192
selectBackground=92,143,253
selectForeground=255,255,255
visitedLinkColor=128,0,128
windowBackground=255,255,255
windowForeground=0,0,0

@ -0,0 +1,26 @@
[Color Scheme]
Name=Lipstik White
activeBackground=58,128,234
activeBlend=107,145,184
activeForeground=255,255,255
activeTitleBtnBg=127,158,200
alternateBackground=237,244,249
background=238,239,242
buttonBackground=247,250,255
buttonForeground=0,0,0
contrast=7
foreground=0,0,0
frame=239,239,239
handle=239,239,239
inactiveBackground=238,239,242
inactiveBlend=157,170,186
inactiveForeground=255,255,255
inactiveFrame=239,239,239
inactiveHandle=239,239,239
inactiveTitleBtnBg=167,181,199
linkColor=0,0,238
selectBackground=100,154,255
selectForeground=255,255,255
visitedLinkColor=82,24,139
windowBackground=255,255,255
windowForeground=0,0,0

@ -0,0 +1,38 @@
/*
* Copyright 2003, Sandro Giessl <ceebx@users.sourceforge.net>
*
* 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.
*/
#include <qcolor.h>
#include "misc.h"
QColor alphaBlendColors(const QColor &bgColor, const QColor &fgColor, const int a)
{
// normal button...
QRgb rgb = bgColor.rgb();
QRgb rgb_b = fgColor.rgb();
int alpha = a;
if(alpha>255) alpha = 255;
if(alpha<0) alpha = 0;
int inv_alpha = 255 - alpha;
QColor result = QColor( qRgb(qRed(rgb_b)*inv_alpha/255 + qRed(rgb)*alpha/255,
qGreen(rgb_b)*inv_alpha/255 + qGreen(rgb)*alpha/255,
qBlue(rgb_b)*inv_alpha/255 + qBlue(rgb)*alpha/255) );
return result;
}

@ -0,0 +1,24 @@
/*
* Copyright 2003, Sandro Giessl <ceebx@users.sourceforge.net>
*
* 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 __MISC_H
#define __MISC_H
QColor alphaBlendColors(const QColor &backgroundColor, const QColor &foregroundColor, const int alpha);
#endif // __MISC_H

@ -0,0 +1 @@
style
Loading…
Cancel
Save