Commit Graph

13266 Commits

Author SHA1 Message Date
Aleix Pol
ce5d182510 Make Application component async
We're not using it for concatenating process calls, so it doesn't make
sense to make it block.

Reviewed by David Edmundson
2014-06-23 15:37:47 +02:00
Marco Martin
e09a2eb44a check pointer validity, crash--
even if that code path shouldn't be hit, always better avoiding a crash
(proper fix coming)
CCBUG:336491
2014-06-23 14:50:06 +02:00
Marco Martin
57001cfcf4 refine button to adapt better to any palette
BUG:336471
2014-06-23 14:10:20 +02:00
Christoph Feck
fec57bdaa2 Use QElapsedTimer for data engines
forward port of http://commits.kde.org/kdelibs/ac5d3d2f916c0a461121d4d033642227bd743edb

CCBUG: 336551
REVIEW: 118869
2014-06-23 13:03:16 +02:00
l10n daemon script
ac4f519188 SVN_SILENT made messages (.desktop file) 2014-06-23 08:35:39 +00:00
Andre Woebbeking
35ee077ee3 warning: ignoring return value of function
CCMAIL:mart@kde.org
2014-06-22 20:37:18 +02:00
Fabian Bornschein
3152e678d9 update for some icons to fit in the overall design 2014-06-22 15:32:58 +02:00
Andrew Lake
e48d111806 fix stylesheet for battery and brightness icons 2014-06-21 10:36:08 -07:00
Andrew Lake
66911cbc30 align battery and brightness icons to pixel grid. 2014-06-21 10:06:42 -07:00
Andrew Lake
c4091dcbcd tidy up sloppy highlight and focus on slider handle 2014-06-21 09:12:09 -07:00
Marco Martin
bc26ac1334 more familiar graphics for switch user 2014-06-20 20:33:57 +02:00
Kai Uwe Broulik
f89f9945c3 Split the battery.svgz
This moves some of the icons into a FDO icon spec compliant file with proper element name
2014-06-20 19:36:54 +02:00
Marco Martin
6603334b9b make the view's qml know about the wallpaper
better giving the access to the view qml rather than the containment

Reviewed by: Bhushan Shah <bhush94@gmail.com>
2014-06-20 19:04:09 +02:00
Vishesh Handa
5cd7040d8d Battery Icon: Rename elementIds to begin with filename
"battery-KeyboardBrightness" instead of "KeyboardBrightness"

this follows the convention, and this way it can be used with Plasma
IconItem
2014-06-20 18:31:00 +02:00
Marco Martin
55b5e815b5 ignore inactive containment in containmentAt
Reviewed by: Bhushan Shah <bhush94@gmail.com>
BUG:336168
2014-06-20 17:32:36 +02:00
Vishesh Handa
d3de99eb1e AppletQuickItem: Do not remember the popup dialog size
The popup dialog can currently never be resized, so it doesn't make
sense to record its height in a config file. Additionally, this also
causes problems when applet writers change the size of their plasmoid.
Since the old size is saved in the config file, it is shown with the old
dimensions instead of the new ones.

REVIEW: 118849
BUG: 336070
2014-06-20 17:31:57 +02:00
Marco Martin
3847be89fa don't crash if no colors file is provided
Reviewed by: Martin Gräßlin <mgraesslin@kde.org>
2014-06-20 14:42:13 +02:00
David Edmundson
c317939aba Add notify property to colorGroup
REVIEW: 118841
2014-06-20 00:21:33 +02:00
Marco Martin
2c9103ee19 position the slider bar at margins
is a way in between the verious fix attempts of 332587
BUG:336448
CCBUG:332587
2014-06-19 20:57:49 +02:00
Kai Uwe Broulik
549361cb42 Fix typo 2014-06-19 20:12:51 +02:00
David Edmundson
66e2b915f6 Replace ScrollArea with a QQuickControls ScrollView
Included is a plasma theme to make it look the same.
A known regression is that SectionScroller is temporarily removed
but that is currently not used in plasma-desktop
and this fixes a lot more problems than it causes.

REVIEW: 114283
2014-06-19 20:10:38 +02:00
Marco Martin
4f14f4ceb9 "configure" icon for config dialogs
BUG:336461
2014-06-19 20:03:31 +02:00
Marco Martin
17741fbfae prune ColorRole enum
all the former combinations are now obtained with
ColorRole + ColorGroup
2014-06-19 18:18:50 +02:00
Marco Martin
8eb1bc10f5 Introduce the ColorScope class
it's an import in core, and advertises itself as an "attached property"
with this we can:
say that all its chidren are of a certain context, like "button" or
"complementary"

then anywhere there will be available an attached property, as ColorScope,
so like:

PlasmaCore.ColorScope {
 group: PlasmaCore.Theme.Complementary

 PlasmaComponents.Label {
   text: "foo"
   color: ColorScope.textColor
 }
}
2014-06-19 17:40:14 +02:00
David Edmundson
f22dd8e571 Replace incorrect documentation 2014-06-19 15:14:03 +02:00
David Edmundson
21af3f8c81 Don't require mandatory subText in tooltip
REVIEW: 118838
2014-06-19 15:12:26 +02:00
Marco Martin
0ba92ad6c2 adjust to pixel grid 2014-06-19 11:50:58 +02:00
Marco Martin
9b418853f7 new shiny icons for kickoff by alake 2014-06-19 11:28:57 +02:00
Sebastian Kügler
a5f25771a2 Reduce Units footprint
- internally, smallSpacing, largeSpacing and gridUnit are entangled, and
  all use the font's rendered size. This means we can save a
  QFontMetrics construction by merging the updating of these three
  props.
- A wanted side-effect is that the updating of spacing and gridunit now
  happens at the same time, so they're updated consistently in the UI.
- Also, use compile-time connects for the Plasma::Theme::themeChanged
  connection
2014-06-19 03:12:27 +02:00
Sebastian Kügler
f8422b903c Fix APIDOX for some properties 2014-06-19 03:10:43 +02:00
Sebastian Kügler
453c40efee increase units.smallSpacing
1/8 is really ridiculously small, it ends up being 2px on almost all
systems, and using it between UI elements makes them look really
cramped. 1/4 works much better, and makes this property actually useful.
2014-06-19 02:50:14 +02:00
Eike Hein
94430a6784 Tweak margin hints on task frame. 2014-06-18 23:59:58 +02:00
Marco Martin
aec4311adb remove breeze-complementary
add around complementary color groups
2014-06-18 19:42:00 +02:00
Marco Martin
b755bd1e32 ColorGroup is part of Theme 2014-06-18 19:22:02 +02:00
Marco Martin
c54d3d5538 colors are not flags 2014-06-18 19:09:18 +02:00
Marco Martin
4ad2cc5196 new color group of "complementary" colors
for areas intended to have independent background and text color than
all the rest, like the Logout dialog

if Colors:Complementary is not present in the theme, it falls back to
normal colors
2014-06-18 19:02:08 +02:00
Martin Gräßlin
d7d71e8a66 [declarativeimports/core] Do not crash if FadingMaterialShader failed to complie
Without GLSL our shader doesn't compile and Qt aborts when accessing the
uniforms. We don't want that, abort is never nice.

BUG: 336272
REVIEW: 118813
2014-06-18 15:13:58 +02:00
Marco Martin
1f633ad0a1 fix tooltip resize in folderview
also, detach from old layouts if the mainitem changes
2014-06-17 21:55:45 +02:00
Martin Klapetek
de43b9b547 Remove bad merge leftovers 2014-06-17 17:56:05 +02:00
Martin Klapetek
6240b9e7d5 [calendar import]Fix months capitalization
Should be done by the view/label rather than hardocding it
2014-06-17 17:55:01 +02:00
Martin Klapetek
b0f56eed9b [calendar import]Set 'today' properly 2014-06-17 17:54:32 +02:00
Martin Klapetek
da33d6211f [calendar import]Remove useless function 2014-06-17 17:25:05 +02:00
David Edmundson
b44e0205bc Add icon size "tiny"
REVIEW: 118798
2014-06-17 17:14:15 +02:00
Aleix Pol
97cf403288 Reduce Applet::containment calls
It's not a cheap call, and there's no need to re-calculate it every time.
2014-06-17 16:02:43 +02:00
Aleix Pol
e1051994ad Ensure that the containment's corona is properly calculated.
The used corona is either the containment's parent or, in case the parent
is an applet, it's containment's corona. With this change we ensure the
proper corona is always found.
This change requires screenContainment to be able to walk through the
object tree in case it's not a containment directly managed by it.

BUG: 334500
2014-06-17 16:02:08 +02:00
Marco Martin
34226faec1 one occasion less to crash
(on debug builds an assert is still possible)
2014-06-17 11:49:23 +02:00
Martin Klapetek
3188b417f4 Split startDate property into today and displayedDate in calendar component
Basically splits the Calendar::m_startDate into 'today' and
'displayedDate', where displayedDate is the date that is displayed (it
controls the days model etc) and can be manipulated by the user by eg.
changing months in the plasmoid, and today is the current day, populated
by our dataengine (which means it auto-updates with no need for a
timer).

This allows for greater flexibility and things like "Go back to today"
when eg. the plasmoid is hidden or when the user have browsed too far in
the calendar and just wants to get back to today (the button to do that
pending).

Also this fixes a problem where the time dataengine is being polled
every 30secs for the clock and would reset the calendar view as the
startDate is currently bound to the dataengine and the view resets on
that change.

REVIEW: 118668
CCBUG: 336304
2014-06-17 10:43:13 +02:00
Sebastian Kügler
bcde055673 Add test for ContextMenu
This enables and disabled menuitems with a timer, so we can see whether
dynamically updating these properties are propagated to the QMenu in the
proxy.

CCBUG:336281
2014-06-17 03:14:24 +02:00
Sebastian Kügler
5b38b9f850 Fix MenuItem.visible and MenuItem.enabled
Update visible and enabled property of the action backing MenuItem when
these properties change.

BUG:336281
2014-06-17 03:14:24 +02:00
Kai Uwe Broulik
76175fafa6 Handle mouse wheel events in PlasmaComponents.Slider
REVIEW: 118753
2014-06-16 20:07:16 +02:00