Commit Graph

24 Commits

Author SHA1 Message Date
Martchus 0651323da4 Use ForkAwesome consistently in Plasmoid as well 2021-10-15 22:18:30 +02:00
Martchus 1ccac1e145 plasmoid: Use `data-error` icon instead of the old `emblem-important`
Loading the icon for the button from resources ceased to work (maybe when
switching to `PlasmaComponents3.ToolButton`). This change works around the
problem and the old icon no longer needs to be bundled.
2021-07-01 18:26:09 +02:00
Martchus 9df2a17e5c Port Plasmoid to QCC2/PlasmaComponents3 where possible
The following uses of QCC1/PlasmaComponents2 remain:

```
…/DetailView.qml:import org.kde.plasma.components 2.0 as PlasmaComponents // for Menu and MenuItem
…/DevicesPage.qml:import org.kde.plasma.components 2.0 as PlasmaComponents  // for Menu and MenuItem
…/DirectoriesPage.qml:import org.kde.plasma.components 2.0 as PlasmaComponents  // for Menu and MenuItem
…/DownloadsPage.qml:import org.kde.plasma.components 2.0 as PlasmaComponents  // for Menu and MenuItem
…/FullRepresentation.qml:import org.kde.plasma.components 2.0 as PlasmaComponents // for vertical TabBar
…/RecentChangesPage.qml:import org.kde.plasma.components 2.0 as PlasmaComponents  // for Menu and MenuItem
…/TopLevelView.qml:import org.kde.plasma.components 2.0 as PlasmaComponents // for Highlight and DialogStatus.Closed (used with Menu and MenuItem)
```
2020-11-27 19:09:47 +01:00
Martchus 3e1beaa11d Sort directories by name/ID
* Use the name as sorting criteria and fall back to the ID if there's no
  name
* Use new SyncthingSortFilterDirectoryModel also for Plasmoid's filtering
* See https://github.com/Martchus/syncthingtray/issues/75
2020-10-18 15:48:02 +02:00
Martchus aac87621dc Streamline context menus of regular tray application and Plasmoid
* Support triggering actions via the context menu in the regular tray like
  it is already possible in the Plasmoid
* Support copying via the context menu in the Plasmoid like it is already
  possible in the regular tray
* Reduce repetition of coding patterns using templates
2020-10-07 21:42:50 +02:00
Martchus f952ca6ba1 Fix warning about binding loop of with property in Plasmoid code
Specifying the with explicitely on every level seems to fix this. Not sure
whether it is the best solution but Qt 6 will likely mess up everything
anyways so let's not put further effort into the QML stuff at this point.
2020-08-18 01:27:48 +02:00
Martchus 356a4d7304 Fix resume/pause icon in plasmoid 2020-04-13 02:04:20 +02:00
Martchus ed4d1fc213 Use idle status icon for button to open Syncthing web UI
That looks more consistent, especially when using a dark color theme
where the default Syncthing icon doesn't fit in very well.
2020-04-12 23:16:26 +02:00
Martchus a4c2074012 plasmoid: Fix width of detail items
So the alignment and text eliding actually has effect.
2019-03-19 23:07:32 +01:00
Martchus 6c6830936d plasmoid: Add button for filter 2019-03-19 23:07:22 +01:00
Martchus 2ab88c5766 Add font awesome icons to models
So it looks a bit more like the official UI.
2019-02-27 20:41:50 +01:00
Martchus b0c4c122a4 Use good old emblem-important icon
The new version from Breeze doesn't look nice in the way the
plasmoid uses this icon.
2019-02-26 17:43:28 +01:00
Martchus 4a42a3f0c0 Fix and refactor directory error handling
* Rely not only on the FolderErrors event
* Request pull errors when opening the dialog
* Use "pullErrors" from FolderSummary
* Move code for directory error dialog into
  its own class

This should fix that sometimes obsolete errors
were still displayed or actually present errors
missing.
2018-11-03 21:30:17 +01:00
Martchus ece582db04 Fix visibility of "Show errors" button in plasmoid 2018-10-24 21:35:08 +02:00
Martchus 321d6fdd60 Fix QML warnings regarding use of anchors within layout
'Detected anchors on an item that is managed by a
layout. This is undefined behavior; use Layout.alignment
instead.'
2018-06-30 17:45:03 +02:00
Martchus 419e2971c1 plasmoid: Add context menu for top-level list views
Might be useful to add further actions because the
space for buttons is limited.
2018-03-26 22:56:55 +02:00
Martchus eb3b74eec1 plasmoid: Attempt to ensure details view uses full width 2017-10-01 21:22:44 +02:00
Martchus 42369824f5 plasmoid: Add filter for directory list
Filtering is enabled just by starting to type
2017-10-01 17:54:11 +02:00
Martchus 91c589ce14 plasmoid: Add shortcuts for (almost) everything 2017-09-26 23:46:20 +02:00
Martchus 16854a110e plasmoid: Only enable rescan button for unpaused dirs 2017-09-26 15:28:10 +02:00
Martchus d3b1da2def plasmoid: Customize buttons
* Use less space
* Fix iconSource when menu present
2017-09-12 00:00:31 +02:00
Martchus ccfe0e160e Improve plasmoid: most features implemented now 2017-09-09 21:40:00 +02:00
Martchus db1063d5a0 Improve plasmoid
Now implemented:
* Downloads
* Directory errors
* Systemd integrations
* Multiple connection configurations
2017-09-08 17:01:52 +02:00
Martchus f9b6441a8e Add Plasmoid (still experimental and incomplete) 2017-08-30 00:04:35 +02:00