Commit Graph

12759 Commits

Author SHA1 Message Date
Marco Martin
3a4093f15f update porting script 2014-01-29 17:35:33 +01:00
David Edmundson
d43fa35c42 Remove triple include of the same file 2014-01-29 17:22:44 +01:00
Marco Martin
428c10e24c fullrepresentation and the expander are created on demand 2014-01-29 17:09:43 +01:00
David Edmundson
c9c79e7a42 Optimisation: Don't work out position based on visualParent if there isn't one 2014-01-29 16:54:56 +01:00
David Edmundson
a805af6e7d Don't emit widthChanged ourselves. QWindow does it in resize() 2014-01-29 16:49:50 +01:00
Marco Martin
2a37efbdb7 cleanups
move qmlobject initialization in appletloader
2014-01-29 16:20:39 +01:00
Marco Martin
012554d8d9 get rid of the old sizehint mechanism 2014-01-29 11:11:43 +01:00
l10n daemon script
6ecbbd9129 SVN_SILENT made messages (.desktop file) 2014-01-29 04:19:24 +00:00
Marco Martin
075d55c842 entation switching done by appletloader 2014-01-28 22:55:02 +01:00
Marco Martin
866fe43120 experiment with AppletInterface to be attached
Plasmoid.title etc would be attached properties to the root object instead of being a component itself
2014-01-28 18:26:46 +01:00
Martin Klapetek
2ea398f5a6 Detect current QScreen manually in Dialog
QWindow::screen() never ever changes if the window is moved across
virtual screens (normal two screens with X), this seems to be
intentional as it's explicitly mentioned in the docs.

Until that's changed or some more proper way of howto get the current
QScreen for given QWindow is found, we simply iterate over the virtual
screens and pick the one our QWindow says it's at.

This also fixes the OSD having proper shadows in multiscreen environment
2014-01-28 18:19:30 +01:00
Martin Klapetek
203f4a5049 [OSD] Display "%1 Muted" for media players with volume down to 0 2014-01-28 17:07:50 +01:00
Martin Klapetek
fe5c5f4e6c Fix amarok icon in air theme
It was missing the element id
2014-01-28 15:24:46 +01:00
Martin Klapetek
a4c4fc05af Add OSD API for media player's volume changes
Reviewed-by: Marco Martin
2014-01-28 15:08:09 +01:00
Martin Klapetek
605ab0f130 Add OSD notifications to plasma-shell
As we decided to make the OSD available only for certain things, the API
is intentionally limited to very particular set of things. The list is
not complete yet I believe, but it's definitely a finite and a small set

Also as it's not a public service, I left it under org.kde.plasma_shell
on D-Bus.

And we're still missing all the icons except volume, but Jens is on it.

REVIEW: 115301
2014-01-28 15:08:09 +01:00
Aleix Pol
87a7db3063 Create a MimeDatabase component that maps QMimeDatabase
Makes it possible to figure out mimetypes from QML.

REVIEW: 115348
2014-01-28 15:04:19 +01:00
Sebastian Kügler
6dfb4f240b Make setDevicePixelRatio(qreal) a simple slot 2014-01-28 13:49:23 +01:00
l10n daemon script
831357d98f SVN_SILENT made messages (.desktop file) 2014-01-28 04:22:11 +00:00
Sebastian Kügler
789a40f15f Merge branch 'master' into sebas/hidpi 2014-01-28 01:17:19 +01:00
Sebastian Kügler
2a217dff0a Remove unneeded API
- dpi(QQI*) and printScreenInfo(QQI*) goes away, they're mainly useful for
  testing.
- setDevicePixelRatio goes private
- clarify DPI computation
2014-01-28 01:15:38 +01:00
Sebastian Kügler
b7fcea471c Add comment why we read the DPI the way we do 2014-01-28 00:17:32 +01:00
Sebastian Kügler
b102ae5e45 Complete apidocs for Units. 2014-01-27 19:51:08 +01:00
David Edmundson
3abddd8d99 Move python and ruby dataengine bindings from kde-workspace 2014-01-27 19:48:08 +01:00
Sebastian Kügler
b3a5d65580 Complete apidocs for Plasma::Theme 2014-01-27 19:41:39 +01:00
Marco Martin
2f4867bf0c get rid of the old QtScript bindings 2014-01-27 19:27:59 +01:00
Aleix Pol
e019e293fa Fix broken substitution expression 2014-01-27 19:00:40 +01:00
Sebastian Kügler
0928741416 A bit more text, conditional alignment 2014-01-27 18:22:54 +01:00
Sebastian Kügler
f374d2880d Merge branch 'master' into sebas/hidpi 2014-01-26 23:39:00 +01:00
Sebastian Kügler
94540a4262 Workaround seems to have been accidentally disabled
This workaround is needed for applet internal qmldirs to be loaded.

Fixes crasher in notifications applet.
2014-01-26 23:24:07 +01:00
Sebastian Kügler
dfd1b554ad disable enormous icon for now, it's a bit annoying at high settings :) 2014-01-25 03:41:45 +01:00
Sebastian Kügler
b1bc20259a units.dp and units.du be gone
- They're not used
- They're conceptually broken and arbitrary to our scaling concepts
- The implementation as Q_INVOKABLE isn't very useful
2014-01-25 03:35:00 +01:00
Sebastian Kügler
c8ba9746f2 iconSizes.default be gone
This is used nowhere, so better get rid of it before someone gets the
idea.

Leaves us with only one non-scaled icon size. Maybe worth considering to
get rid of this as well, and let Folderview decide?
2014-01-25 03:30:45 +01:00
Sebastian Kügler
11e3d687d9 Remove dialog and toolbar icon sizes
Add FIXME for small icon alignment
2014-01-25 03:25:07 +01:00
Sebastian Kügler
da3a724634 units.dialog and .toolbar remove-by-script 2014-01-25 03:20:00 +01:00
Sebastian Kügler
f5d2066e76 Icons to test icon sizing in theme test plasmoid 2014-01-25 02:51:56 +01:00
Sebastian Kügler
124ae423c1 Scale units.iconSizes with dpi
This is still pretty rough. It seems to work fine for larger icons, but
smaller ones get misaligned. This will need some corrections, such as
locking the smaller sizes to 16, 22, 32, 48, 64, which should take care
of this issue.

With this change, parts of Plasma scale depending on the DPI. This is
noticeable in Kickoff.
2014-01-25 02:40:52 +01:00
Sebastian Kügler
a2baa1c7c7 Merge branch 'master' into sebas/hidpi 2014-01-24 23:38:37 +01:00
Bhushan Shah
3c0007db22 Provide KFormat wrapper in PlasmaCore for unit conversion
REVIEW: 115284
2014-01-24 22:28:04 +05:30
Sebastian Kügler
6d9022dca2 Use int for units.gridUnit
It was an int already anyway, so let's be true about this and also
return an int. This reflects pixel-alignment in the API, not just in the
implementation.
2014-01-24 12:33:39 +01:00
Martin Klapetek
c0f53545eb Provide look&feel package by ShellCorona
REVIEW: 115256
2014-01-23 16:23:28 +01:00
Martin Klapetek
fc30bc6b52 Add OSD to look&feel package definition
REVIEW: 115257
2014-01-23 15:40:31 +01:00
Marco Martin
e0676f7501 use the new backgroundcontrast effect 2014-01-23 15:17:41 +01:00
Martin Gräßlin
188e421956 Do not overwrite the window type by calling setFlags
QWindow::setFlags is manipulating the same X property as
KWindowSystem::setType. Thus our setType never succeeded as the
setFlags overwrote the window type again. In the same way we
have to call setFlags when reverting to the default Normal type.

REVIEW: 115258
2014-01-23 14:26:59 +01:00
Sebastian Kügler
2a3a546f80 Play around with devicePixelRatio
This shows how the UI can react when used with different
devicePixelRatios.
2014-01-23 04:07:05 +01:00
Sebastian Kügler
e346c751ec Allow to reset devicePixelRatio
Setting devicePixelRatio to 0 re-reads it and resets it to its default
value.
2014-01-23 04:05:45 +01:00
Sebastian Kügler
979dc0c25f Add test for devicePixelRatio 2014-01-23 02:18:58 +01:00
Sebastian Kügler
cca8a86f98 Rename units.dpiScale to units.devicePixelRatio 2014-01-23 02:18:06 +01:00
Sebastian Kügler
f305950a80 Fix tooltip spacing 2014-01-23 01:50:37 +01:00
Sebastian Kügler
dfbd1456e5 update porting script 2014-01-23 01:49:13 +01:00
Sebastian Kügler
a70dd8c299 theme.defaultIconSize moves to units.iconSizes.default 2014-01-23 01:47:42 +01:00