Commit Graph

12212 Commits

Author SHA1 Message Date
Sebastian Kügler
90d2afb722 Cleanups in units 2014-02-03 16:32:29 +01:00
Sebastian Kügler
30e98ba8f7 units.longDuration and units.shortDuration properties
These centralize the duration of animations, currently set to 250 and 50
milliseconds. They're notifiable since we want to be able to switch off
animations at runtime.

CCMAIL:plasma-devel@kde.org
2014-02-03 16:30:50 +01:00
Sebastian Kügler
210a224bd3 Use icons from Air also for Oxygen
As these icons now change color depending on textColor, they suddenly
become wonderfully useful for the dark themes as well.

Fixes systemtray in Oxygen Plasma theme
2014-02-01 22:38:26 +01:00
l10n daemon script
063366d681 SVN_SILENT made messages (.desktop file) 2014-02-01 04:10:47 +00:00
l10n daemon script
cef95ccc63 SVN_SILENT made messages (.desktop file) 2014-01-31 04:30:37 +00:00
David Edmundson
f5618db949 Remove unused property drawWallpaper
As suggested here: http://community.kde.org/Plasma/libplasma2/API_Review/Containment
kde-workspace doesn't use it.

REVIEW: 115224
2014-01-30 15:34:45 +01:00
David Edmundson
d7a3a10238 Align Dialog Popups to align to be outside the docks.
For the WidgetExplorer we want to show the tooltips to the right of the
scrollbar in the view, not to the right of the delegate the tooltip is
for.
This patch checks if the visualParent is in a dock. If so the popup is
positioned outside

I have also introduced a manual test for Dialog Positioning, and
includied some fixes in the original logic.

REVIEW: 115393
2014-01-30 15:03:28 +01:00
l10n daemon script
d3ae687cd7 SVN_SILENT made messages (.desktop file) 2014-01-30 04:16:54 +00:00
David Edmundson
60e0754f90 Reduce the number of times syncToMainItemSize is called in Dialog
syncToMainItemSize is rather expensive and gets called a lot in item
initalisation as various properties get set.
2014-01-29 18:49:06 +01:00
David Edmundson
9de921e34d Warnings-- if modelData.seperator is not set 2014-01-29 18:39:20 +01:00
David Edmundson
d43fa35c42 Remove triple include of the same file 2014-01-29 17:22:44 +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
l10n daemon script
6ecbbd9129 SVN_SILENT made messages (.desktop file) 2014-01-29 04:19:24 +00: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