Commit Graph

227 Commits

Author SHA1 Message Date
975e86c895 Allow backend libraries to be used from other projects
So far the backend libraries' include paths were relative within this
repository. This means the header files could not be used at their
installed location.

This change replaces them with "<>" includes to fix that problem and adds
a new include directory so building everything at once still works.

With this change it should be easier to actually split some parts into
another repository if this one would become too big.
2021-01-25 19:48:11 +01:00
66b6c224dc Update translations 2020-12-01 18:50:16 +01:00
81e9d534e7 plasmoid: Use QQ2 combo box (Plasma components 3 version clips end of text) 2020-11-30 18:25:38 +01:00
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
57e9865ace Sort devices by name 2020-10-20 19:36:02 +02:00
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
33b8c8df85 Fix copying device ID in Plasmoid 2020-10-08 16:39:22 +02:00
ce46931631 Update translations 2020-10-07 21:53:39 +02:00
555abd8667 Improve plasmoid testing (documentation) 2020-10-07 21:42:50 +02:00
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
0b5fb14931 Remove overspecification of Qt version in documentation and comments 2020-09-04 01:13:46 +02:00
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
80704e0028 Adapt test environment for Plasmoid
Apparently just setting HOME does not work anymore. At least in my Plasma
setup XDG_DATA_HOME and XDG_CONFIG_HOME are now interfering. This change
introduced an extra helper script to take care of the environment variables
which unsets the XDG_… variables and also takes care of QT_PLUGIN_PATH by
the way.
2020-08-18 01:20:06 +02:00
f837284212 Update translations 2020-08-11 23:20:22 +02:00
e62a69a2a9 Enable High-DPI scaling/pixmaps in plasmoid
* Fix too small icons, see
  https://github.com/Martchus/syncthingtray/issues/71
* Still needs testing on a real 4k screen
* Hopefully this does not distrub the rest of the shell
2020-07-23 18:47:35 +02:00
c0e2e0bce1 Apply clang-format 2020-07-12 21:17:34 +02:00
5b2147a874 Apply scaling in renderSvgImage() similar to QIcon::pixmap() does 2020-07-12 02:38:57 +02:00
cb9209594d Update translations 2020-06-02 18:28:46 +02:00
a1882317e1 Use default Syncthing icon in Plasmoid context menu
It seems like `plasmoid.nativeInterface.syncthingIcon` doesn't work.
2020-05-31 18:15:55 +02:00
5b6b3af5fc Streamline menu entry to open Syncthing in Plasmoid with other places 2020-05-31 00:24:58 +02:00
66f8555d0a Support "Recent changes" tab by keyboard navigation in Plasmoid 2020-05-26 18:12:16 +02:00
e8952e77d1 Fix connecting autom. in plasmoid when systemd integration is used 2020-05-25 20:30:39 +02:00
14ddb6d035 Hide connect button while connecting in plasmoid like in widgets-based app 2020-05-25 20:30:39 +02:00
e44a523e3a Update translations 2020-05-05 19:02:30 +02:00
65b3261320 Hide connections menu when only one connection is configured
* Make UI look cleaner for the common case of only one configuration
* Save some width to help with
  https://github.com/Martchus/syncthingtray/issues/65 a little bit
2020-04-28 00:10:04 +02:00
a2695311d4 Fix QML warnings in TinyButtonStyle.qml 2020-04-27 23:47:52 +02:00
8971f294e8 Improve Plasmoid's connections menu further 2020-04-14 18:15:30 +02:00
50a3299254 Use good old for loop to populate connections menu of plasmoid
It seems like the "Instantiator" does not do the right thing here as for
the QCC1 menu leading to segfaults.
2020-04-13 03:26:10 +02:00
fca8ccad4d Use PlasmaComponents.Menu instead of ugly default QCC1 Menu 2020-04-13 02:46:13 +02:00
356a4d7304 Fix resume/pause icon in plasmoid 2020-04-13 02:04:20 +02:00
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
d50cdf3a06 Use consistent icon for rescanning all folders in plasmoid 2020-03-26 22:48:54 +01:00
5e773619cb Prevent installing .gitignore as part of the plasmoid package 2020-03-18 17:26:22 +01:00
b8edea29f9 Update translations 2020-03-01 22:06:18 +01:00
6921f9aa89 Configure bright colors for recent changes model 2020-02-29 13:17:38 +01:00
cd805e83ba Allow using bright custom color in Dolphin menu
to make it look better when using a dark theme
2020-02-18 20:47:55 +01:00
c103174609 Make desktop files for Plasma integration from template
* Avoid redundant meta-data
* Take target suffix into account
2020-02-14 23:14:50 +01:00
94753de797 Fix start/stop button tooltip for system-wide systemd service 2020-02-02 19:51:16 +01:00
dab3fd7e31 Update translations 2020-01-18 16:47:51 +01:00
10fd09901b Prevent warning in Plasmoid
This line might have done something at some point so let's
not completely remove it for backwards compatibility.
2020-01-18 16:43:13 +01:00
6026339c83 Show recent changes 2020-01-18 16:43:13 +01:00
e76d4afff5 Improve layout of Plasmoid appearance settings page 2020-01-11 21:42:25 +01:00
addba5a87c Improve layouts of settings pages
Especially prevent certain elements from expanding (the
additional space between the elements looks weird).
2020-01-11 20:53:07 +01:00
04b6ff9bf1 Update translations 2019-12-18 00:31:53 +01:00
32f78b74fd Overhaul systemd integration, support system-wide units
* Lazy initialize systemd interface and don't initialize it
  at all if the unit name is empty
* Allow to supervise/control system-wide units in addition to
  user units (see https://github.com/Martchus/syncthingtray/issues/61)
* Avoid redundant code
2019-12-18 00:18:46 +01:00
7c3a9634ae Enable wrapping of longer labels of plasmoid appearance settings 2019-12-15 20:21:51 +01:00
d5cd80fe5b Update translations 2019-11-30 18:48:05 +01:00
32996b8894 Improve sizing of Plasmoid 2019-11-30 18:47:58 +01:00
3586bbf032 Amend commend regarding Plasma workaround
It seems like version 5.17.0 is already affected.
2019-10-31 18:49:49 +01:00
e31edb5579 Document testing within the real Plasma shell 2019-10-27 19:17:37 +01:00
e063dc6c18 Hack around plasmashell 5.17.1 ignoring parent's height 2019-10-27 18:54:52 +01:00
38987707bd Update translations 2019-10-09 23:23:02 +02:00
e7f5dc9b48 Ensure the plasmoid tooltip has the right size
This is required when a tooltip from another plasmoid
has been shown directly before.
2019-09-21 16:52:49 +02:00
p-bo
2ddbbc6c79
Added Czech localization
Create syncthingplasmoid_cs_CZ.ts
2019-08-20 21:38:08 +02:00
22af85aaf2 Update README.md
* Update Plasmoid screenshot
* Add Xfce to tested platforms
2019-08-12 00:33:23 +02:00
47fae26975 Construct QList for pages from initializer list 2019-08-10 22:04:39 +02:00
1c13908381 Format QML files 2019-08-08 23:10:15 +02:00
072bef22c5 plasmoid: Prevent overlapping status info 2019-08-08 21:51:27 +02:00
b9402ce374 plasmoid: Ensure keyboard events can be received after initialization 2019-08-08 21:35:56 +02:00
1982d26295 Remove code duplication in SyncthingApplet 2019-08-01 19:08:58 +02:00
2363e9a7d4 Update status icon and tooltip when changing settings
Required because the reconnect interval which might be included
in the tooltip might have changed.
2019-08-01 19:07:58 +02:00
353f1e2463 Allow to distinguish icon colors within UI and system tray
This is useful because sometimes the background color of the system
tray is dark but the overall system UI still uses a light theme.

For the Plasmoid this should never be the case, though. Hence the
extra settings are not available there.
2019-07-31 20:16:43 +02:00
03d15d5bfb Update notes about Plasmoid testing 2019-07-26 22:02:27 +02:00
205189c34a Update translations 2019-07-21 22:37:23 +02:00
62fc662692 Add tooltips to plasmoid statistics 2019-07-21 22:33:52 +02:00
b9e9d76594 Update translations 2019-07-13 13:38:51 +02:00
335913c8ca Fix build without systemd support 2019-07-13 13:21:02 +02:00
2112b00347 Allow to show start/stop button for launcher 2019-07-12 20:32:55 +02:00
6ac633366e Don't use functions obsoleted in Qt 5.13.0 2019-06-25 14:37:14 +02:00
dc7d9b815f Adapt to changes in c++utilities 2019-06-14 19:15:26 +02:00
64473df5ba Adapt to changes in c++utilities 2019-06-10 22:48:26 +02:00
4896fc0342 Add screenshot with customized icons 2019-05-28 17:59:43 +02:00
0e7cc8ba9b Apply changed status colors without restart 2019-05-19 23:11:50 +02:00
72b72b26ae Don't abuse scanning icon to get default logo 2019-05-19 18:04:28 +02:00
05da0465a7 Allow customizing status icon colors 2019-05-19 17:57:37 +02:00
8dacbaa8d7 Adapt to new c++utilities API 2019-05-05 18:42:19 +02:00
0049d96bca Adapt to c++utilities API changes 2019-05-04 22:18:31 +02:00
d88df866d2 Adapt to c++utilities v5 2019-05-04 21:05:21 +02:00
3ff8c2b66c plasmoid: Use tiny button for search 2019-03-20 17:37:34 +01:00
a4c2074012 plasmoid: Fix width of detail items
So the alignment and text eliding actually has effect.
2019-03-19 23:07:32 +01:00
6c6830936d plasmoid: Add button for filter 2019-03-19 23:07:22 +01:00
c523f627da Update screenshot, remove outdated ones 2019-03-09 14:55:29 +01:00
c8f86a3d2e Put plasmoid plugin under plasma/applets 2019-02-27 21:21:07 +01:00
a6380947ea Fix wrong translation and update translations 2019-02-27 20:45:05 +01:00
3e97a65bae Use font awesome icons for global stats in plasmoid 2019-02-27 20:42:41 +01:00
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
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
33e55cc49f Update screenshot of Plasmoid 2019-02-23 13:56:16 +01:00
a3a09297f7 Render font awesome icons in color from QPalette
Since theres apparently no API in the Qt Svg module to support
this the change introduced here simply replaces in the SVG
document itself.
2019-02-23 13:55:46 +01:00
78d4553104 Update translations 2019-02-18 00:41:17 +01:00
06072df707 Show button for about dialog in plasmoid as well 2019-02-17 23:49:39 +01:00
2b3a27d537 Replace "Open web UI" with "Open Syncthing" 2019-02-17 23:49:22 +01:00
e56c950100 Show overall statistics in plasmoid 2019-02-17 23:46:03 +01:00
e475454c2d plasmoid: Fix setting initial size
Some change in Qt or Plasma prevents the old way of setting
it to work (using onVisibleChanged). Using a Loader and
onLoaded seems to work better.
2019-02-12 00:23:51 +01:00
326f03b604 Apply cmake-format 2019-02-06 17:36:14 +01:00
d803f83d0f Update translations 2018-11-03 21:41:44 +01:00
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
930691ebdc Rename ErrorViewDialog to InternalErrorsDialog 2018-11-03 18:15:10 +01:00
900377b036 Stop web view immediately if in background and user disables this 2018-10-28 14:27:25 +01:00
ece582db04 Fix visibility of "Show errors" button in plasmoid 2018-10-24 21:35:08 +02:00