Commit graph

94 commits

Author SHA1 Message Date
Kunda Ki
7898cd7837 Cleanup: Fix various typos
Fixes several user-facing and non-user-facing typos.

Found via:  
`codespell -S "*.actions,*.appdata.xml,*.desktop,*.json,*.kksrc,*.metainfo.xml,*.notifyrc,*.po,./po,*.xml" -L claus,doubleclick,filetest,flate,mis,nam,previousy,propt,substract,virtualy`
2025-09-22 15:21:10 +00:00
Marco Martin
14eac23315 widget explorer: delete icon on the uninstall button
add a red trashcan icon in the uninstall button of the widget explorer
to make it a bit more noticeable which is a destructive action

BUG:506818
2025-07-10 16:40:48 +02:00
Nate Graham
11d35be2d3 Improve some UI, context, and accessible strings
Closes #148
2025-06-05 17:08:57 -06:00
Christoph Wolk
81ac917d77 desktoppackage/WidgetExplorer: make parameter explicit
or qml complains
2025-05-08 07:48:26 +00:00
Christoph Wolk
93ced685d7 desktoppackage/WidgetExplorer: avoid scrollbar binding loop
The scroll bar visibility can cause a binding loop as it becoming
visible can change the word wrap of the contents, which may causes the
size to increase, which triggers re-evaluation of the visibility. This
is jsut a temporary problem, as the size can't shrink due to the
scrollbar becoming visible, and there's only one vertical scrollbar.

Instead, use a delayed binding to give it some extra time. This is
similar to how this was handled in the notes applet.
2025-03-19 11:39:11 +00:00
Christoph Wolk
d4808ded1b WidgetExplorer: improve screen reader accessibility
Widget Explorer contains a lot of information about widgets and plenty
of buttons, but screen reader use is rather inconsistent - much of that
is not read out, including the central aspects of the explorer: widget
names and descriptions.

This change makes the components from the visual interface accessible
to screen readers. Along the way, the text for uninstalling widgets was
adjusted a bit to make it clearer and more consistent, using "uninstall"
thoughout and leaving "remove" for the action that removes active
widgets from panels/desktop without uninstalling them.
2025-02-14 16:48:38 +00:00
Nate Graham
5eac6a754c WidgetExplorer: make margins perfect
Now everything in the header, main content view, and footer all use the
same consistent largeSpacing margins on all sides. Everything aligns
vertically even if you draw lines on a screenshot, and it looks amazing.
2024-09-27 11:00:18 -06:00
Nate Graham
3172654b1e WidgetExplorer: improve header margins
Part of https://invent.kde.org/teams/vdg/issues/-/issues/74.

Make them larger and consistent on the left, right, and bottom, which
looks better. And reduce them on top which centers the header text in
the space and makes the buttons respect Fitts' Law.
2024-09-27 14:51:02 +00:00
Niccolò Venerandi
f81d5976a8 Only open panel settings when closing widget sidebar if manually closed
Otherwise, other ways of closing the sidebar (e.g. pressing the screenshot
button) will also pop back to the panel settings.

"1" is a placeholder for the Panel type, since it's currently not exposed to QML. That will be changed before this MR is merged.

BUG:493048

`FIXED-IN: 6.2.0`
2024-09-18 13:34:06 +00:00
Christoph Wolk
b71370e9a8 desktoppackage: fix title case in widget explorer
Widget explorer has a button that confirms uninstalling widgets. This
button uses title case as recommended by the HIG, but does so
incorrectly; it capitalizes the word "of" but short prepositions of less
than four characters are supposed to be lower case in APA style (and
most other style guides).

This change makes this label use correct title case and adds translation
context.

BUG: 492790
FIXED-IN: 6.3
2024-09-13 08:26:32 +02:00
Niccolò Venerandi
8488c4b7d5 Make widgets filter ToolButton work as ComboBox
BUG:426970
2024-08-22 20:54:44 +00:00
Niccolò Venerandi
0fe4d5a431 Widen Widget Explorer and allow for one more line of text within delegates
BUG:401342
2024-08-21 09:11:49 +00:00
Nate Graham
78e222ad6a WidgetExplorer.qml: also apply workaround to add/addDisplaced transition
This was accidentally missed in 1183d26462

CCBUG: 483962
2024-08-07 10:19:58 -06:00
Nate Graham
1183d26462 WidgetExplorer.qml: work around QML transition bug with animations off
Due to https://bugreports.qt.io/browse/QTBUG-127709, zero-speed
animations cause the remove and addDisplaced transitions to malfunction:
items end up overlapping.

Work around it for now by manually disabling those when the animation
speed is zero.

BUG: 483962
FIXED-IN: 6.1.5
2024-08-07 16:14:17 +00:00
Filip Kendes
26c039d555 Simplify the "Get New" button in Widget Explorer
According to the HIG, there's no need to repeat the subject since the subject gets inherited automatically from the row it's on.

| Before | After |
|--------|-------|
| ![before1.png](/uploads/bb856453e43158d7f00f66aacb2643ce/before1.png){width=529 height=298} | ![after1.png](/uploads/c80b9a29d8f2d73dc4b0dadefa158e2e/after1.png){width=524 height=295} |

BUG: 489864
2024-07-11 19:07:35 +00:00
Niccolò Venerandi
2206aa8056 Widget Explorer: ask for focus after drag and drop
Since the Widget Explorer only closes when it loses focus, but
there's an exception during a drag and drop, it might get stuck
open. Immediately reclaiming focus will make sure it closes.

Example to test with:

- Right click on a panel, click "add widgets"
- open panel edit mode
- sidebar closes!

But:

- Right click on a panel, click "add widgets"
- drag and drop a widget to the panel
- open panel edit mode
- sidebar does not close :-(

With this MR it closes.

BUG: 488571
FIXED-IN: 6.1.1
2024-06-24 19:00:26 +00:00
Marco Martin
dae347aa92 Button to confirm plasmoids uninstall
besides the auto delete on expire, add a button in the
widget explorer footer to confirm the uninstall and do it
immediately

![image](/uploads/31d68a4fc0741a60fe7709d9dad62c68/image.png)
2024-01-29 16:18:34 +00:00
Fushan Wen
36ba60eadb Set text format to plaintext for labels
This makes the labels more efficient as text content doesn't need to go through Qt::mightBeRichText.
2024-01-22 16:58:01 +00:00
Nate Graham
db41669ffd Port highlight effects to use PlasmaExtras.Highlight and unify behavior
Porting to this component makes the visual styling consistent and lets
us change it in the future--if need be--from only one place. Some things
that were already using it did not specify enough conditions to have it
cycle through all of its various states, and that's been corrected here
too.

Part of https://invent.kde.org/plasma/plasma-workspace/-/issues/97.
2023-10-26 09:25:38 -06:00
Nicolas Fella
f210f6b84e [widgetsexplorer] Fix enum type 2023-10-14 00:41:51 +02:00
Nicolas Fella
b5520e6dac Adapt to new DialogStatus enum location 2023-09-22 23:24:03 +00:00
Nate Graham
a09a1b523a Remove versioning from PlasmaCore module imports
It's unneeded in Qt6 and can cause subtle issues.
2023-09-05 09:21:36 -06:00
Mike Noe
d4593b3dc8 Port PlasmaCore/Extras to Kirigami
-  Port PlasmaExtras.Heading to Kirigami.Heading
-  Port PlasmaCore.* to Kirigami per "call to action" items:

https://pointieststick.com/2023/06/14/call-to-action-easy-porting-opportunity-in-plasma
2023-06-19 18:48:29 +00:00
Nate Graham
c6ad7b66fe WidgetExplorer: set spacing on Layout containers
We don't want to use their default values of 5, which doesn't match our
HIG or scale with the font size.
2023-06-16 14:19:36 -06:00
Nate Graham
aca077dab6 WidgetExplorer: don't use a second timer to delay placeholder message
There's already a timer for setting the model, and that's the thing that
we want to wait for anyway before showing the placeholder message. So
just bind to the running state of that timer, rather than a second
unnecessary one.
2023-06-16 14:16:05 -06:00
Nate Graham
6742f0b771 WidgetExplorer: remove mega-dead code
This code has been commented out for years and is clearly not something
that's still useful anymore.
2023-06-16 14:11:35 -06:00
Nicolas Fella
f12379c5f2 Port to PlasmaExtras Menu 2023-03-01 13:15:43 +01:00
Dāvis Mosāns
4aac40eeea Port to KF6 KWindowSystem 2023-02-28 22:23:31 +01:00
Fushan Wen
ce1d66f895 desktoppackage: remove workaround for QTBUG-73388 in widget explorer 2023-01-25 09:26:53 +00:00
Fushan Wen
1696f52e86
desktoppackage: specify translation domain
Some qml files are not used in plasma_shell_org.kde.plasma.desktop
translation domain, so need to specify translation domain to show
translation.
2022-12-18 09:16:40 +08:00
Fushan Wen
76edffa6c6 desktoppackage: add arrow key navigation support in widget explorer
`keyNavigationWraps` is disabled to allow to switch focus to the search
field by pressing up arrow key when the topmost items has focus.
2022-09-12 15:31:09 +00:00
Nate Graham
bbf3a6f3de WidgetExplorer: delay showing "nothing found" message for 2 seconds
We do the same thing in KCMs, to prevent the message from appearing for
a brief moment while the view initializes.
2022-04-18 13:00:04 -06:00
Nate Graham
ab3b5fd74b WidgetExplorer: add icon to placeholder message 2022-04-13 16:39:03 -06:00
Janet Blackquill
c30d8d658c Port to PlasmaExtras.Highlight
Done automatically w/ qml-refactor-fairy
2022-03-07 13:39:46 -05:00
Nate Graham
ca45a14e02 Port everything else to SearchField 2022-03-06 21:28:29 -07:00
Noah Davis
06d75383e6 WidgetExplorer: fix arrow keys not working correctly in GridView
Previously, left/right arrows didn't work and up/down arrows went left
and right
2022-01-25 06:50:41 +00:00
Arjen Hiemstra
3829d2206d Don't focus widget explorer search by default if that would show vkbd 2022-01-24 13:38:11 +00:00
Arjen Hiemstra
2c28dd79e9 Set Qt.ImhNoPredictiveText for text fields that act as search fields
This ensures that searching happens while the text is being entered from
a virtual keyboard.

BUG: 439914
2021-10-19 19:26:01 +00:00
Méven Car
cba7b1f70d Port WidgetExplorer' PlasmaExtras.ScrollArea to PC3.ScrollView
CCBUG: 437155
BUG: 426077
2021-10-12 15:04:27 +00:00
Nate Graham
a8a9c016ab WidgetExplorer: Port placeholder message to PlasmaExtras.PlaceholderMessage
It had an older homegrown implementation that is trivially ported to use
the standard component.
2021-09-29 19:02:44 -06:00
Nate Graham
1e5aa17c6e WidgetExplorer: Port mostly to PlasmaComponents3
No UI changes.
2021-09-29 18:58:43 -06:00
Alexander Lohnau
e1d89da146 Convert licsense headers to SPDX 2021-06-25 10:36:06 +00:00
Felipe Kinoshita
e003cf94dd Use ellipses instead of triple period
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
2021-05-25 16:30:19 +00:00
Jan Blackquill
3564a1e08c Port away from using units as context properties
This commit ports away from units.* to PlasmaCore.Units.*
2020-09-24 23:09:57 +00:00
Carson Black
a64d847c6f Revise the add widgets sidebar to be more Plasma-ish
- All controls are moved to a header (more in line with other applets)
- Sidebar is wider to accomodate the rearranged layout
- Delete and running count are only shown on hover (more in line with the presentation used in KCMs)
2020-07-24 18:57:25 +00:00
Nate Graham
3d388480a8 Revert "Refine style of add widget sidebar"
This reverts commit f17eae91f6.

It was committed without adequate discussion and there were unresolved
discussions. Furthermore, no code review was done, and as a result it
shipped with visual regressions.

We will re-discuss and commit a fixed version if appropriate.
2020-07-21 11:15:25 -06:00
Carson Black
f17eae91f6 Refine style of add widget sidebar 2020-07-21 16:08:27 +00:00
David Redondo
3cc6f9db41 Remove dead code
See plasma/plasma-workspace!161
2020-07-17 16:32:48 +02:00
Nate Graham
f3bbc0ba0e Stop multiplying duration values
Summary:
After D28144, some animations are now too long because they were inappropriately
multiplying a duration value. That's no longer necessary, so let's remove the
multiplication.

Depends on D28144

Test Plan: Various things that were a bit too slow before feel just right now

Reviewers: #vdg, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28239
2020-04-04 20:45:26 -06:00
Nate Graham
eb91f8e983 Port to use level 1 Heading instead of Title
Summary:
`PlasmaExtras.Title` is literally identical to a level 1 Heading. Let's port to that
so we have less code to maintain and fewer things to change the next time we want to
adjust the look of titles

Test Plan: No visual changes

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27348
2020-02-21 08:12:48 -07:00