Commit Graph

15703 Commits

Author SHA1 Message Date
David Edmundson
b1364fa601 Fix broken background
In commit c709076d9c the SVG got somehow
broken leading to black rectangles in all cases where it was used.

This commit reverts to the last working version, then reapplies the
"thick margin" from the change.

A test is supplied to show all our frameSVGs to hopefully make this
easier to spot if it happens again.

BUG: 430390
2020-12-17 12:41:38 +00:00
Marco Martin
f09b46bec6 Draft: Replace QString cache IDs with a struct-based version
As it turns out, QString::number() is quite expensive, especially when
using it in a code path that is called a lot of times. So instead, use a
struct with a custom hash method as cache ID. This is significantly
faster since we do not need to do memory allocations or string
conversions.
2020-12-17 11:31:27 +00:00
Mikel Johnson
b1b91fb3eb [TabGroup] Reverse animations in RTL mode 2020-12-14 11:27:22 +00:00
David Edmundson
c920ea86a1 Only remove shortcuts on applet removal not destruction
Applets are destroyed every time we close plasma as well as user
actions.

We only want to remove the shortcut from the registry from when an
applet is actually removed.

The end-user impact was limited as when we restart plasma we re-register
and plasma keeps it's own cache of what the shortcut should be so it
doesn't matter that kglobalaccel lost it's version.

The problem is that it means we send bogus calls to kglobalaccel after
kglobalaccel is potentially closed.

Testing done:
 - set a shortcut on an applet
 - confirmed it still worked after plasma restart
- removed an applet (and closed notificaiton so it wasn't in the
transient state)
- confirmed the entry was gone from system settings and the global
shortcut no-opped.
2020-12-14 10:09:19 +00:00
l10n daemon script
ec113adffe GIT_SILENT Upgrade KF5 version to 5.78.0. 2020-12-12 13:20:11 +00:00
l10n daemon script
f7743ade92 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-12-10 06:24:39 +01:00
Nate Graham
08c5cb671d Hide disabled contextual actions from ExpandableListItem
The concept of a disabled contextual item is nonsensical;
the set of context-sensitive actions is always supposed to be responsive
to the context. Accordingly, if the calling code has marked any actions
as disabled, let's hide them entirely.

We can't remove them from the model because they might become re-enabled
at a time when the calling app sees fit (perhaps the context has
changed). So instead we have to set visible to false and height to 0, to
ensure that the listview has the correct height. This is a hack, but I
don't see a better way to do it.

The memory penalty to having invisible but created items should be
negligible since there are only ever a maximum of about 3 items in here.
2020-12-08 15:47:22 -07:00
l10n daemon script
26eb310175 GIT_SILENT Upgrade ECM and KF5 version requirements for 5.77.0 release. 2020-12-05 10:17:09 +00:00
Mikel Johnson
904e9bb856 [Representation] Only remove top/bottom padding when header/footer is visible 2020-12-03 16:03:08 +00:00
Mikel Johnson
479c90137f [PlasmoidHeading] Use technique from Representation for inset/margins 2020-12-03 14:59:49 +00:00
Marco Martin
da6b8c10c1 properly forward containmentDisplayHintsChanged
make possible to write containmentDisplayHintsChanged from
ContainmentInterface QML
when containmentDisplayHintsChanged, the containment forwards to
all its applets
2020-12-03 13:53:40 +00:00
Marco Martin
0e973e852f Add a Representation component
Add a Page-derived component intended as a root
for full representations.
It may go over the plasmoid edges (both on desktop and popups)
with the properties applyHorizontalPadding and applyVerticalPadding.
When the contentItem is a ScrollView or a Scrollarea,
the plasmoid margins will be automatically removed.
2020-12-02 14:05:29 +00:00
Mikel Johnson
f52823935c [Desktop theme] Rename hint-inset-side-margin to hint-side-inset 2020-12-02 11:31:32 +03:00
Mikel Johnson
0de09e8825 [FrameSvg] Rename insetMargin to inset 2020-12-02 11:24:03 +03:00
Mikel Johnson
1be527bd27 [PC3] Use PC3 Scrollbar in ScrollView 2020-11-29 15:53:05 +03:00
Mikel Johnson
431d4cc0d4 Report inset of zero where appropriate 2020-11-27 10:24:52 +00:00
Albert Astals Cid
65d600fa93 GIT_SILENT Upgrade Qt5 version requirement to 5.13.0. 2020-11-27 00:52:43 +01:00
Mikel Johnson
74a64a0b3d [Breeze] Report inset hint 2020-11-26 09:35:55 +00:00
Mikel Johnson
c8e563efa7 [FrameSvg*] Rename shadowMargins to inset 2020-11-26 09:35:55 +00:00
Mikel Johnson
2f7563d6eb [FrameSvg] Cache shadow margins and honor prefixes 2020-11-26 09:35:55 +00:00
David Redondo
472f4212a9 Finish the animation before changing the length of the progressbar highlight
This messes with the running animation and can lead to it overshooting the track.
BUG:428955
2020-11-25 07:55:24 +00:00
Nate Graham
c5fa23f858 [textfield] Fix clear button overlapping text
This change mirrors what the Kirigami ActionTextField does to solve the
same problem.

BUG: 429187
FIXED-IN: 5.77
2020-11-24 17:01:31 +00:00
David Redondo
3ce989221e Show drop menu at correct global position
The coordinates we get are relative to the containment.
Before when dragging a file to a second screen it would show the menu
on the first screen.
2020-11-24 12:12:00 +00:00
Niccolò Venerandi
f341abadd7 Remove slim- 2020-11-23 18:03:53 +01:00
Carina Odenbreit
eaf585bc01 Use gzip -n to prevent embedded buildtimes 2020-11-23 12:18:16 +00:00
Nicolas Fella
007eacca5b Use KPluginMetaData to list containmentActions
Add a new method that uses KPluginMetaData to list the
containmentActions and deprecate the KPLuginInfo-based one
2020-11-23 12:17:26 +00:00
Nicolas Fella
d7f118e589 Port packageStructure loading from KPluginTrader
It will be deprecated.
2020-11-23 12:17:05 +00:00
Nicolas Fella
1a1133006b Use KPluginMetaData to list DataEngines
Avoid using KPluginInfo and KPluginTrader in favor of KPluginMetaData
and KPluginLoader.

Add new method that uses KPluginMetaData

Deprecate old KPluginInfo-based methods.

See also https://phabricator.kde.org/T13889
2020-11-23 12:16:32 +00:00
Marco Martin
255eb93070 check for parent 2020-11-23 12:44:09 +01:00
Nicolas Fella
750deb933d Remove dead cmake code 2020-11-20 22:50:18 +00:00
Niccolò Venerandi
09ed402eb7 Merge branch 'master' of https://invent.kde.org/frameworks/plasma-framework into work/marginareas 2020-11-20 23:23:52 +01:00
Niccolò Venerandi
b4d81f90bf Actually add highlight svg 2020-11-20 22:07:48 +01:00
Mikel Johnson
3b11e75462 Revert "[Dialog] Make BackgroundHints a flag and add DiscardBackgroundMargins"
This reverts commit 4079eaae0e
2020-11-20 15:21:23 +00:00
Mikel Johnson
d56ca431c2 Revert "[Dialog] Don't apply margins with DiscardBackgroundMargins instead of reverse"
This reverts commit 4f80d91ceb
2020-11-20 15:21:06 +00:00
Mikel Johnson
717e2ab7b0 Revert "[Dialog] Evaluate margins when BackgroundHints change"
This reverts commit 1367c5d3f6
2020-11-20 15:20:36 +00:00
Mikel Johnson
c387bddf17 Remove FullRepresentationFillArea for now
This needs further discussion
2020-11-20 15:18:24 +00:00
Mikel Johnson
5cbdc03197 [PlasmaCore] Make ConstraintHint a flag and add FullRepresentationFillArea 2020-11-20 17:05:57 +03:00
Mikel Johnson
f8ae743c2f Revert "[IconItem] Add selected property"
This reverts commit 9c8cf7078e
2020-11-20 13:26:54 +00:00
David Redondo
624fc88f7a BasicPlasmoidHeading: Use i18nd
GIT_SILENT
2020-11-20 08:57:12 +01:00
Niccolò Venerandi
93ef1a4d4a Fix the documentation of ConstraintHints 2020-11-19 18:49:25 +00:00
Mikel Johnson
1367c5d3f6 [Dialog] Evaluate margins when BackgroundHints change 2020-11-19 18:45:27 +00:00
Niccolò Venerandi
99ab350d6c Merge branch 'master' of https://invent.kde.org/frameworks/plasma-framework into work/marginareas 2020-11-19 18:52:44 +01:00
Mikel Johnson
4f80d91ceb [Dialog] Don't apply margins with DiscardBackgroundMargins instead of reverse 2020-11-19 17:31:51 +00:00
Niccolò Venerandi
f3a7b2d26f Merge branch 'master' of https://invent.kde.org/frameworks/plasma-framework into work/marginareas 2020-11-19 18:17:05 +01:00
Mikel Johnson
ecb1820357 [TabBar] Add highlight on keyboard focus 2020-11-19 17:07:30 +00:00
Mikel Johnson
9c8cf7078e [IconItem] Add selected property 2020-11-19 17:07:30 +00:00
Mikel Johnson
d6656a545a [FrameSvg*] Expose shadows margins 2020-11-19 17:06:51 +00:00
Mikel Johnson
4079eaae0e [Dialog] Make BackgroundHints a flag and add DiscardBackgroundMargins 2020-11-19 16:23:00 +03:00
Niccolò Venerandi
3c92764b62 Merge branch 'master' of https://invent.kde.org/frameworks/plasma-framework into work/marginareas 2020-11-18 23:03:56 +01:00
Niccolò Venerandi
bca1d4a7b3 Make MarginAreasSeparator value more clear 2020-11-18 18:21:06 +00:00