Commit Graph

15781 Commits

Author SHA1 Message Date
Yunhe Guo
dbbc0429a8 Unify aspect ratio of 32px and 22px battery icons 2020-11-01 11:35:15 +00:00
l10n daemon script
7134b09e00 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-11-01 06:27:47 +01:00
David Faure
e6fb3c7a87 Port from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation
They are the same on Linux (but DataLocation is deprecated). On Windows this enables the use of the roaming path.

NO_CHANGELOG
2020-10-31 14:29:35 +01:00
Kai Uwe Broulik
0fc98e5141 [ContainmentInterface] Remove unused include
ConfigPropertyMap is only used from AppletInterface, which this inherits
2020-10-29 22:33:22 +01:00
Noah Davis
b3ee36cfbb Add margin hints to toolbar.svg and refactor PC3 ToolBar
There's no need to redefine contentWidth and contentHeight. For controls based on QQC2 Pane, content size is implicit size if not 0, else the implicit size of the top level child item if there is only one.
2020-10-29 15:18:20 +00:00
Noah Davis
13b0bb8364 Add AbstractButton and Pane to PC3
These 2 don't contain much, but they should be a good base for making custom controls in plasmoids and plasmashell (where that makes sense)
2020-10-29 15:18:20 +00:00
Marco Martin
4ceb47765f support exclusive action groups in the contextual actions 2020-10-29 15:14:20 +00:00
Fabian Vogt
d578c2a154 Fix BusyIndicator rotating even when invisible, again
After "BusyIndicator: Do not rotate when invisible", plasmashell started
consuming 100% CPU due to plasma-nm's icon having an invisible BusyIndicator.
Adding the "visible" property back into the equation avoids this.

Third time's the charm?
2020-10-24 15:56:11 +02:00
Devin Lin
a868053128 Fix colours not applying to mobile task switcher icon 2020-10-24 03:29:44 +00:00
Devin Lin
c48be25a72 Add plasma mobile task switcher and close app icons (for taskpanel) 2020-10-23 14:54:44 +00:00
Felix Yan
c7a7aad857 Correct a typo in service.h 2020-10-23 16:53:02 +08:00
Laurent Montel
e2c16864c8 If include is define in .h remove it if it's defined in .cpp too (scripted) 2020-10-23 08:39:01 +02:00
Aleix Pol
c3259fc2df Solve some clazy warnings
My last patch triggered me to run clazy on the project. This patch
solves some of them:
- Proper iteration of some types, saving their copy.
- compile-time connects
- prefer using connects with the 3rd argument as an object when using
lambdas.
2020-10-22 11:12:32 +00:00
Marco Martin
f93c8769ef remove dead code 2020-10-21 15:19:16 +00:00
Marco Martin
c2f281452c Better Menu in PlasmaComponents3
add the missing MenuSeparator component
support for radio buttons
like the desktop style, put icons and checkboxes in two separate columns, making them
all aligned to each other when there is a combination of neither, only icon, only checkbox, both
2020-10-21 15:19:16 +00:00
Laurent Montel
fa06d610dd Remove not implemented method 2020-10-19 07:12:43 +02:00
Chris Holland
25d22c1a64 Remove unnecessary anchors in the ComboBox.contentItem
@ahiemstra noticed this in the qqc2-desktop-style!19 patch but the PC3
patch plasma-framework!36 had already been merged.
2020-10-13 14:37:09 +00:00
David Redondo
a187141e73 Round slider handle position
We are dividing by two and additionally availableHeight can be fractional
(observed when running kirigami gallery with plasma style for example). Round
the resulting values to avoid blurry rendering due to fractional positioning.
2020-10-13 15:19:48 +02:00
Kai Uwe Broulik
4d5ff92b2c [ExpandableListItem] Load expanded view on demand 2020-10-11 19:30:11 +00:00
David Faure
5d6cbd1de9 GIT_SILENT increase KF_DISABLE_DEPRECATED_BEFORE_AND_AT 2020-10-11 11:32:11 +02:00
Antoni Bella Pérez
04631aeb58 Documentation fixes: Use more entities 2020-10-10 19:28:38 +00:00
l10n daemon script
f8b38b42e9 GIT_SILENT Upgrade KF5 version to 5.76.0. 2020-10-10 15:49:56 +00:00
Nate Graham
8e6f62f0cf Add missing PlasmaCore.ColorScope.inherit: false
Whenever you override or hardcode a color, you need to set colorscope
inheritance to false to prevent weird issues.

CCMAIL: noahadvs@gmail.com
2020-10-09 10:29:33 -06:00
Noah Davis
28560ec596 Set PlasmoidHeading colorGroup in root element
This makes it so any child elements inherit the colorGroup if they are
capable of doing so.
2020-10-09 08:35:13 -04:00
Niccolò Venerandi
6837f0355a Merge branch 'work/plasmoidsCanIgnoreMargins' 2020-10-09 11:28:39 +02:00
Niccolò Venerandi
143a9418ce Merge branch 'master' of https://invent.kde.org/frameworks/plasma-framework into work/plasmoidsCanIgnoreMargins 2020-10-09 11:12:14 +02:00
Nate Graham
21b27e90bf [ExpandableListItem] Make colored text 100% opaque
Otherwise it can be difficult to see, especially with dark backgrounds.
Also, let's set the opacity directly rather than using the enabled
property to approximate it.

BUG: 427171
FIXED-IN: 5.76
2020-10-09 02:13:25 +00:00
Aleix Pol
e0e7840a03 BusyIndicator: Do not rotate when invisible
It seems like the "visible" property is catching there is the wrong one
and would still rotate while invisible.

CCBUG: 426746
2020-10-08 18:14:02 +02:00
Chris Holland
086a710478 ComboBox3.contentItem must be a QQuickTextInput to fix autocomplete
See QQuickComboBoxPrivate::updateEditText()
https://github.com/qt/qtquickcontrols2/blob/dev/src/quicktemplates2/qquickcombobox.cpp#L426

By removing the MouseArea previously in the contentItem, we lose the
ability to press+hold+drag to select a drop down item.

The wheel events still work, as they are captured by the MouseArea in
the background component.

The combobox previously closed the popup when releasing the click to
open the dropdown when editable=true.

BUG: 424076
2020-10-08 13:34:32 +00:00
Niccolò Venerandi
337779252d Merge branch 'master' of https://invent.kde.org/frameworks/plasma-framework into work/plasmoidsCanIgnoreMargins 2020-10-08 14:52:45 +02:00
Aleix Pol
f2ed2ca183 FrameSvg: Don't reset the cache when resizing
We were passing the enum as the first argument, which was being
converted to 0 and would set lastModified to 0. This would in turn
result in the cache being bypassed because now `findInCache with a
lastModified timestamp of 0 is deprecated` taking the slow path on most
occasions.
2020-10-08 04:06:56 +02:00
Friedrich W. H. Kossebau
d1617d6d2d Port away from deprecated KDeclarative::setupContext()
NO_CHANGELOG
2020-10-07 16:26:31 +00:00
Alexander Lohnau
d6a5b10b3b Toggle plasmoids when shortcut is activated
BUG: 400278
FIXED-IN: 5.76

Now the plasmoids are toggled by default. The system tray is a
special case, which needs to be in plasma-workspace adjusted.
2020-10-07 16:18:35 +00:00
Aleix Pol
0e5338fcc9 TextField 3: Add missing import
Looking at kscreenlocker logs I noticed this was missing.
2020-10-07 15:05:41 +00:00
Alexander Stippich
88384296d5 Fix IDs in plasmavault_error icon
Fixes display of icon in the vault plasmoid, e.g. when unmounting a vault with a file of it still opened
2020-10-05 16:56:34 +00:00
Friedrich W. H. Kossebau
88c916ff59 PC3: fix color of TabButton label
For some currently unknown reason the color property does not have
the binding as set in PC3's Label.
So explicitly setting it, like also done for CheckBox, Switch, RadioButton
2020-10-05 15:19:46 +02:00
l10n daemon script
af5e487a45 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-10-05 06:03:37 +02:00
l10n daemon script
3073465b82 GIT_SILENT Upgrade ECM and KF5 version requirements for 5.75.0 release. 2020-10-04 09:59:40 +00:00
l10n daemon script
e6a3d119f0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-10-03 06:17:19 +02:00
Nate Graham
7f9fe64f9b Fix plasmoidheading.svgz being installed to the wrong place
This was causing it to not show up for people using the Breeze Dark
Plasma theme (but not the default Plasma theme with a dark color scheme)

BUG: 426537
FIXED-IN: 5.75
CCMAIL: vonreth@kde.org
2020-10-01 17:28:54 -06:00
Arjen Hiemstra
2f78dfb9d9 Provide a lastModified value in ThemeTest
Since lastModified is now required to be a valid value we should make
sure to test with a proper value as well.
2020-10-01 15:11:19 +00:00
Aleix Pol
93de15f545 Detect that we are looking for an empty element and quit early
Otherwise we just go through all the fallbacks unnecessarily
2020-10-01 12:14:41 +00:00
Nicolas Fella
fe7598c6ef Remove commented code 2020-09-30 22:40:04 +02:00
Nate Graham
b532fd2f20 Make PlasmaComponents3 Tooltips use the typical tooltip style
Without this, the tooltips are light when using a light theme. This is
contrary to other tooltips, which are always dark no matter which
coloration of theme you're using.

BUG: 424506
FIXED-IN: 5.75
2020-09-28 08:44:41 -06:00
Nate Graham
b40a1fbdf0 Use Header colors in PlasmoidHeading headers
This brings applets with distinct heading areas into visual consistency
with windows, once the Tools Area MR lands.

When using a color scheme that lacks Header colors, there is no visual
change whatsoever.
2020-09-28 14:30:18 +00:00
l10n daemon script
f47f98da0b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-09-28 05:58:18 +02:00
andy salerno
ad6647d5e5 Change PC2 TabBar highlight movement animation easing type to OutCubic
This makes the highlight movement feel more responsive in Kickoff.

Unfortunately, the same cannot be done for the PC3 TabBar since it uses
a ListView with a highlight. The easing type for the highlight movement
animation cannot be customized.

MR: frameworks/plasma-framework!91
2020-09-26 15:20:26 -03:00
Noah Davis
b8fb2ff44e Add support for Tooltip color set
Also add some missing color sets to ThemePrivate::colorsChanged()
2020-09-24 16:41:13 -04:00
Noah Davis
3167717797 Fix PC3 Button/ToolButton icons not always having the right color set
BUG: 426556
FIXED-IN: 5.75
2020-09-23 20:33:46 -04:00
Arjen Hiemstra
16f852ea4c Ensure FrameSvg uses lastModified timestamp when using cache
This, I suspect, is the true source of bug 426674. FrameSvg would
request items from the cache without specifying any modification time
stamp, so we end up always retrieving the cached version. Since
lastModified is now a required parameter, we need to ensure this does
not happen anymore.

BUG: 426674
2020-09-23 14:08:52 +00:00