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
b9d4f2f042
merge findInCache methods
2011-05-20 08:23:43 +02:00
Davide Bettio
6455fefd09
Please don't set the default wallpaper in plasma/theme.cpp, configure the theme metadata file instead.
2011-04-27 18:31:12 +02:00
Sebastian Kügler
547231f381
tame font family for CSS, makes it work =)
2011-04-24 14:22:18 +02:00
Aaron Seigo
d83bb2a72c
protect usage of svg element cache config
...
this needs to be thoroughly checked over and tested before backporting;
seems this fixes some occassional crashes users are running into.
CCMAIL:notmart@gmail.com
2011-01-30 13:47:29 -08:00
Marco Martin
e0815d83a6
discard the cache when the blur behind changes
...
svn path=/trunk/KDE/kdelibs/; revision=1215741
2011-01-19 13:50:58 +00:00
Marco Martin
091d781dc5
* don't reset the watched properties: it breks kwin
...
* check for the blur property only on PropertyNotify and if is on the property we actually want
svn path=/trunk/KDE/kdelibs/; revision=1214853
2011-01-16 17:25:28 +00:00
Marco Martin
9f5fdb1385
disable the effect watcher since it seems to have issues
...
svn path=/trunk/KDE/kdelibs/; revision=1214635
2011-01-15 17:55:06 +00: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
Manuel Mommertz
0594bd9d85
Use correct on-disk pixmap cache
...
svn path=/trunk/KDE/kdelibs/; revision=1206190
2010-12-13 20:14:52 +00:00
Davide Bettio
6855137e40
Use Horos as default wallpaper instead of Ethais.
...
svn path=/trunk/KDE/kdelibs/; revision=1206147
2010-12-13 15:18:29 +00:00
Albert Astals Cid
9f7b20829a
Replace slow foreach constructs with faster ones
...
Acked by Marco
svn path=/trunk/KDE/kdelibs/; revision=1206126
2010-12-13 13:36:08 +00:00
Aaron J. Seigo
5b9d43d060
* this introduces a Theme object used by Svg to cache the rendering of svg's asking to be colorized, but which are not part of the theme. this requires an independent cache and set of color files, therefore a second Theme object.
...
* not dropping the cache just because we change themes; this made sense when just plasma-desktop used this or when the apps using Plasma::Theme all used the same theme. this is no longer the case, really, and having applications changing themes randomly kicking the cache out from underneath other apps that may still be using it is undesirable. this does mean that cache files will accumulate. not sure that's a big issue as they don't tend to be large and are in an area marked as "cache" (so ripe for clean-without-care)
* cleanups such as getting rid of superfluous use of Plasma:: namespacing in code that is now in libplasma, such as the stylesheeting. (it was from a plasmoid sebas wrote originally, iirc, explaining the historical reason for the explicit namespacing)
svn path=/trunk/KDE/kdelibs/; revision=1203345
2010-12-03 17:09:09 +00:00
Aaron J. Seigo
ff8aea50c6
use the theme itself, not the default theme, for the style sheet. also fix up some whitespace warts.
...
svn path=/trunk/KDE/kdelibs/; revision=1201685
2010-11-28 11:13:27 +00:00
Ingomar Wesp
00e6b5af10
was a bit overzealous with this const'ification. sorry...
...
svn path=/trunk/KDE/kdelibs/; revision=1191194
2010-10-29 22:30:10 +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
Aaron J. Seigo
298921962f
this string already exists, svgzName.
...
svn path=/trunk/KDE/kdelibs/; revision=1183475
2010-10-07 13:51:31 +00:00
Ivan Čukić
14e2cdd885
Fixed fallback element breakage introduced by 1182546
...
svn path=/trunk/KDE/kdelibs/; revision=1183402
2010-10-07 11:09:06 +00:00
Aaron J. Seigo
103415153b
save a couple when searching deeper
...
svn path=/trunk/KDE/kdelibs/; revision=1182546
2010-10-04 21:50:42 +00:00
Aaron J. Seigo
8a5f0f2f39
use QLatin1Literal; probably not necessary everywhere QStringBuilder is used in these files, as some are not hot paths, but the cache look ups at least are
...
svn path=/trunk/KDE/kdelibs/; revision=1181949
2010-10-02 20:06:47 +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
Manuel Mommertz
93242199ac
ButtonBackgroundColor should be the normal background of buttons not the active one
...
svn path=/trunk/KDE/kdelibs/; revision=1180219
2010-09-27 12:08:24 +00:00
Aaron J. Seigo
18d8032b3b
use QStringBuilder
...
svn path=/trunk/KDE/kdelibs/; revision=1178056
2010-09-22 07:46:09 +00:00
Manuel Mommertz
404c4b310d
improved discardCache function
...
- if the theme changed recreate the cache
- if the theme is the same just clear it
- on colorscheme change keep svgElementsCache as element names and sizes are unchanged
svn path=/trunk/KDE/kdelibs/; revision=1173948
2010-09-10 23:03:24 +00:00
Christoph Feck
9699d16a19
Do not hard code font sizes or names
...
Also, avoid constructing a font in the first place. This might help
for the (original) bug 198294, where Plasma::Theme::font() crashes
in widget creation.
CCBUG: 198294
svn path=/trunk/KDE/kdelibs/; revision=1143197
2010-06-26 20:55:52 +00:00
Christoph Feck
d4016c881f
SVN_SILENT Remove unused Q_UNUSED macro
...
because the the variable is used but there is no Q_USED macro
(commit message changed for thiago because he thinks the previous
commit message was wrong ;)
svn path=/trunk/KDE/kdelibs/; revision=1143189
2010-06-26 20:33:10 +00:00
Christoph Feck
26ca332629
SVN_SILENT Q_UNUSED
...
svn path=/trunk/KDE/kdelibs/; revision=1143188
2010-06-26 20:29:58 +00:00
Christoph Feck
8ba19991d7
SVN_SILENT Q_USED
...
svn path=/trunk/KDE/kdelibs/; revision=1143186
2010-06-26 20:24:23 +00:00
Marco Martin
f8cdf8c2e3
setUseGlobalSettings(false); should work also with applications that start with plasma-
...
svn path=/trunk/KDE/kdelibs/; revision=1141943
2010-06-23 21:16:20 +00:00
Marco Martin
70941efc56
still try to read from the theme if the defaultWallpaperTheme is the default, plasma themes with wallpapers work again
...
svn path=/trunk/KDE/kdelibs/; revision=1141773
2010-06-23 13:03:13 +00:00
Aaron J. Seigo
404981d52b
the app is no longer "plasma" and we have several of them, so fix this matching
...
svn path=/trunk/KDE/kdelibs/; revision=1138352
2010-06-15 20:08:46 +00:00
Aaron J. Seigo
1f216930ce
quiet up some debug that isn't really needed and only gives people concern :)
...
svn path=/trunk/KDE/kdelibs/; revision=1134913
2010-06-05 17:35:12 +00:00
Aaron J. Seigo
e5ffc3ce8a
make it const
...
svn path=/trunk/KDE/kdelibs/; revision=1126032
2010-05-13 00:51:22 +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
Adenilson Cavalcanti Da Silva
e6e20afd70
Fixing javascript animation mapping.
...
svn path=/trunk/KDE/kdelibs/; revision=1123281
2010-05-05 19:43:45 +00:00
Michael Pyne
1198bd897a
Port Plasma::Theme to use KImageCache. If it breaks, let me know, but aseigo has been using
...
this quite successfully for a few days now so hopefully it should be just fine for you all.
svn path=/trunk/KDE/kdelibs/; revision=1122518
2010-05-04 03:59:35 +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
Marco Martin
997e6b32ea
since imagePath is regularly used to check if images are present, be a bit more quiet
...
svn path=/trunk/KDE/kdelibs/; revision=1111731
2010-04-06 15:06:41 +00:00
Marco Martin
aa4544bd78
look for elements in the translucent folder when we have the blurback effect enabled
...
svn path=/trunk/KDE/kdelibs/; revision=1108402
2010-03-28 19:37: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
Davide Bettio
4e7fa2f852
Replaced default wallpaper.
...
svn path=/trunk/KDE/kdelibs/; revision=1073285
2010-01-11 22:43:19 +00:00
Davide Bettio
e16960fa55
Replaced default wallpaper.
...
svn path=/trunk/KDE/kdelibs/; revision=1061219
2009-12-11 01:35:13 +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
Aaron J. Seigo
f0f6b91bd5
always return, just in case
...
svn path=/trunk/KDE/kdelibs/; revision=1045310
2009-11-05 18:53:56 +00:00
Aaron J. Seigo
154f7d0e38
use the ThemeGlobal kconfigxt class in Theme
...
svn path=/trunk/KDE/kdelibs/; revision=1032413
2009-10-07 18:44:33 +00:00
Aaron J. Seigo
c4079787fa
simplify the discardCache call; makes sanitizing this code easier (e.g. never having a null pointer!)
...
svn path=/trunk/KDE/kdelibs/; revision=1015481
2009-08-25 16:13:27 +00:00
Marco Martin
3d96f8eb2c
just say you didn't found the item, don't nuke the whole cache
...
svn path=/trunk/KDE/kdelibs/; revision=1006969
2009-08-04 19:54:58 +00:00
Aaron J. Seigo
2c8ad98fdb
use value instead of [] to avoid empty or uninteresting elements in the collection
...
svn path=/trunk/KDE/kdelibs/; revision=1006949
2009-08-04 19:13:58 +00:00