Commit Graph

101 Commits

Author SHA1 Message Date
Aaron Seigo
104634b9cd minor improvements 2012-10-31 12:15:43 +01:00
Giorgos Tsiapaliwkas
729988ffb1 Replace KUrl with QUrl in theme.h/cpp
Reviewed by: Aaron Seigo
2012-02-18 12:13:54 +02:00
Aaron Seigo
9b40224a87 apidox++ for Svg signals 2012-02-13 12:33:30 -05:00
Stephen Kelly
b1b68adb7d Don't use the QtGui module name in includes.
In Qt5, many of them are moved to QtWidgets, so this is the only
way to be source compatible with both Qt 4 and Qt 5.
2012-02-02 10:35:53 +01:00
David Faure
c7ab521ee7 Merge remote-tracking branch 'origin/KDE/4.7' into origin-frameworks
Conflicts:
	experimental/libkactivities/
	plasma/applet.h
	plasma/theme.cpp
	staging/libkcoreaddons/src/jobs/kjob.cpp
2011-12-08 19:06:24 +01:00
Aaron Seigo
a859f6915c compress changed notification events and share the blur effect watcher between themes 2011-12-08 12:54:28 +01:00
Aaron Seigo
0abdaf646d as theme already reads the plasmarc file, use it to cache the tooltipdelay as well 2011-12-06 22:43:43 +01:00
Aaron Seigo
90b02f3973 massive step towards QGraphicsView being separated from libplasma
* remove extenders (never panned out, used by exactly two components that we can find .. anywhere)
* move animations to libplasmagqv
* schedule js anims to be put into the js scriptengine
* move all QGraphicsProxyWidgets, except for IconWidget which is still used by PopupApplet, into libplasmaqgv
* create a subclass-able private class for Applet

TODO: move out icon widget, address FIXMES in graphicswidgetappletprivate.cpp and decide how to register the "right" private class for instantiation in Applet ctors
2011-11-17 14:43:37 +01:00
Stephen Kelly
e23c2dfbd6 Merge remote-tracking branch 'origin/KDE/4.7' into frameworks
Conflicts:
	CMakeLists.txt
	cmake/modules/FindNepomuk.cmake
	kdecore/tests/kstandarddirstest.cpp
	kdeui/util/kkeyserver.h
	kio/kio/accessmanagerreply_p.h
	kio/kio/hostinfo.cpp
	plasma/containment.cpp
	plasma/data/services/plasma.protocol
	plasma/popupapplet.cpp
	plasma/tooltipcontent.h
	plasma/widgets/videowidget.h
2011-08-25 19:43:08 +02:00
Aaron Seigo
db97a9b6cb add missing smallest font support for qml and js widgets 2011-08-17 18:08:00 +02:00
Aaron Seigo
7c8cf530e1 Merge remote-tracking branch 'origin/master' into libplasma2
Conflicts:
	plasma/theme.cpp
2011-07-30 20:20:10 +02:00
Fredrik Höglund
d43d4315aa plasma: Use the new KWindowSystem::compositingChanged() signal
(cherry picked from commit b7b4358542e205c027ccd2718f43052851ff7152)
2011-07-28 23:41:56 +02:00
Fredrik Höglund
836b53ff56 plasma: Use the new KWindowSystem::compositingChanged() signal 2011-07-28 23:37:17 +02:00
Aaron Seigo
6e721dcdf1 no longer provide access to the package from the class, let Package do that 2011-07-15 12:57:02 +02:00
Aaron Seigo
05834d8144 Merge remote-tracking branch 'origin/master' into libplasma2
Conflicts:
	plasma/CMakeLists.txt
	plasma/abstractrunner.h
	plasma/animator.h
	plasma/glapplet.h
	plasma/package.h
	plasma/packagemetadata.h
	plasma/packagestructure.h
	plasma/tooltipcontent.cpp
	plasma/tooltipcontent.h
	plasma/wallpaper.h
2011-07-11 21:56:41 +02:00
Frederik Schwarzer
5c0d0e8e8e Replace doxygen tag @arg by @param.
The @param doxygen tag is formatted way nicer and should be used
throughout our apidox.

REVIEW: 101596
2011-06-13 14:47:29 +02:00
Aaron Seigo
b9d4f2f042 merge findInCache methods 2011-05-20 08:23:43 +02:00
Marco Martin
7df2e103c5 a new private class EffectWatcher, used to be signaled when a particular KWin effect is enabled/disabled.
in future could become public but only after has been proved is really correct

svn path=/trunk/KDE/kdelibs/; revision=1214633
2011-01-15 17:51:55 +00:00
Aaron J. Seigo
f41ce1601b FEATURE: formalize how the homepage for branding purposes is gotten at via the theme.
(this has been a TODO in the code since 4.2!)

svn path=/trunk/KDE/kdelibs/; revision=1209505
2010-12-27 00:46:17 +00:00
Aaron J. Seigo
68c79e755b SVN_SILENT: tabs->spaces
svn path=/trunk/KDE/kdelibs/; revision=1193361
2010-11-05 18:19:20 +00:00
Ingomar Wesp
e049ecb34d Do not require an exact match for size hinted elements, but search for the smallest size hinted element that is bigger than the display size. Thanks to mommertz, who outlined and mentored this patch, element ids are cached both locally and in the theme, so no additional calls to createRenderer are required.
This was discussed in <http://svn.reviewboard.kde.org/r/5689/>.

svn path=/trunk/KDE/kdelibs/; revision=1191192
2010-10-29 22:14:18 +00:00
Manuel Mommertz
8bab6af5ff add hover and focus colors for view elements to Plasma::Theme::color()
svn path=/trunk/KDE/kdelibs/; revision=1184285
2010-10-09 18:14:11 +00:00
Manuel Mommertz
1d82f58e41 allow SVGs to use systemcolors
svn path=/trunk/KDE/kdelibs/; revision=1181642
2010-10-01 16:04:34 +00:00
Sebastian Kügler
4e07d87284 Support for Plasma::Theme-themed stylesheets
This new API returns a stylesheet in Plasma theme colors and
can be used for hybrid widgets

svn path=/trunk/KDE/kdelibs/; revision=1125362
2010-05-11 08:23:41 +00:00
Aaron J. Seigo
efd1c16c3e themed animations; pick up wallpaper settings from fallback themes if the current theme doesn't provide one
svn path=/trunk/KDE/kdelibs/; revision=1120241
2010-04-28 17:40:29 +00:00
Aaron J. Seigo
5ed6f6d546 cleanup the pixmaps before app exit, otherwise they can leak into x
svn path=/trunk/KDE/kdelibs/; revision=1099009
2010-03-04 22:28:39 +00:00
Marco Martin
9d7a9b3e70 document why id is needed
svn path=/trunk/KDE/kdelibs/; revision=1090738
2010-02-15 22:34:34 +00:00
Aaron Charles Reichman
4c31342c2e Fixed some spelling errors flagged by krazy
svn path=/trunk/KDE/kdelibs/; revision=1060866
2009-12-10 09:16:30 +00:00
Marco Martin
94f3c6a498 fix a performance issue: add a new insertintocache function, the new
parameter is used to identify pixmaps that shouldn't be inserted in the
pixmap cache on disk

BUG: 200313

svn path=/trunk/KDE/kdelibs/; revision=1000100
2009-07-20 20:30:07 +00:00
Aaron J. Seigo
47b8b802ac standardize link colors
svn path=/trunk/KDE/kdelibs/; revision=993491
2009-07-08 19:25:20 +00:00
Aaron J. Seigo
cda7c7274b no need for two of these methods
svn path=/trunk/KDE/kdelibs/; revision=979855
2009-06-10 15:45:28 +00:00
Aaron J. Seigo
214c0348a3 put the delayed write-to-cache in theme rather than svg; this means that there is one collection per theme instead of one per svg, one timer per theme rather that one per svg and one write out to cache for the theme. win!
svn path=/trunk/KDE/kdelibs/; revision=975389
2009-05-30 03:08:33 +00:00
Aaron J. Seigo
8b7bb8b125 * add ability to list info for all available themes
* add ability to create a Theme object for a specific theme without first accessing the defaults

svn path=/trunk/KDE/kdelibs/; revision=969464
2009-05-18 12:28:19 +00:00
Aaron J. Seigo
03ee0a6839 revert these changes as they go violate a number of design principles; this has been patiently explained a number of times now.
svn path=/trunk/KDE/kdelibs/; revision=962172
2009-05-01 16:28:10 +00:00
David Nolden
42172d0178 Achieve the additional background painting without adding any public API
svn path=/trunk/KDE/kdelibs/; revision=962014
2009-05-01 12:17:04 +00:00
David Nolden
347c0caac4 - Allow painting a background color, or a background pattern behind freely floating elements of the theme, to provide a better fallback mechanism for transparent themes when composition is not available.
The color/pattern is given through the configuration file, and updating due to changes of the configuration file works perfectly. A simple user-interface to use this will be added to the panel configuration.
If you want to try this out, put into the [Theme] section of your plasmarc file:
frameBackgroundColor=#aacc00 (Your picked color)
frameBackgroundColorAlpha=120 (Alpha value for the color, between 0 and 255, 0=invisible, 255=opaque)
frameBackgroundPattern=/path/to/image
frameBackgroundPatternAlpha=255 (Alpha value for the pattern, as above)

The color is painted first, then the pattern. They are painted into the mask defined by the theme, so this only works nicely with themes that supply proper masks.


svn path=/trunk/KDE/kdelibs/; revision=961915
2009-05-01 00:41:41 +00:00
Aaron J. Seigo
f7bbfe7c86 improve the apidox
svn path=/trunk/KDE/kdelibs/; revision=952055
2009-04-10 19:27:42 +00:00
Arthur Renato Mello
827f5f19be Add support to check with file timestamp if cache for Plasma::Svg is still valid.
svn path=/trunk/KDE/kdelibs/; revision=940638
2009-03-17 21:08:48 +00:00
Aaron J. Seigo
a88f2d8247 FEATURE: allow themes to state that they should use the native widgets
svn path=/trunk/KDE/kdelibs/; revision=931193
2009-02-24 22:42:06 +00:00
Aaron J. Seigo
9ade53ab61 try and watch the config file for changes and reload the theme at that point; for some reason KDirWatch::addFile isn't working for me, but KDirWatch::addDir is? hmm...
svn path=/trunk/KDE/kdelibs/; revision=916823
2009-01-26 06:22:44 +00:00
Andrew Lake
fb3d7e75cb colorScheme and buttonColorScheme need to be updated the color changes
for system-color themes.  Also clear out itemsToSave on colorChange.

svn path=/trunk/KDE/kdelibs/; revision=898780
2008-12-19 01:48:42 +00:00
Aaron J. Seigo
f4486e8862 * remove in-memory entries for invalid elements when an svg is no longer in use
* remove in-memory entries for invalid elements when the rect cache is invalidated for an svg

svn path=/trunk/KDE/kdelibs/; revision=895570
2008-12-11 02:45:45 +00:00
Marco Martin
5a987e0a0b no longer uses plasmarc for the presence or not of those hints but uses
the usual theme specific file.
and expires the cache when system color changes and a tinting is
required.
for some reasons a plasma restart is still required to get colors
applied correctly, some renderer doesn't get properly deleted on theme
change?

svn path=/trunk/KDE/kdelibs/; revision=885241
2008-11-16 20:53:24 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Enrique Matías Sánchez
e27379f475 SVN_SILENT Fix typos in kdebase
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=875089
2008-10-23 09:31:44 +00:00
Marco Martin
88137e4136 comments++
did forgot them on the forst iteration :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872552
2008-10-17 13:09:18 +00:00
Aaron J. Seigo
5197a55791 allow setting of the disk cache size; init it to "no limit", so we can see how that puppy grows with time
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872362
2008-10-17 02:26:26 +00:00
Marco Martin
089fb6ea94 cache on disk rects of elements and the not-existence of them
should avoid some calls of createRenderer() the second time it's queried

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872250
2008-10-16 18:25:20 +00:00