Commit Graph

314 Commits

Author SHA1 Message Date
Martchus f837284212 Update translations 2020-08-11 23:20:22 +02:00
Martchus 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
Martchus c0e2e0bce1 Apply clang-format 2020-07-12 21:17:34 +02:00
Martchus 5b2147a874 Apply scaling in renderSvgImage() similar to QIcon::pixmap() does 2020-07-12 02:38:57 +02:00
Martchus cb9209594d Update translations 2020-06-02 18:28:46 +02:00
Martchus 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
Martchus 5b6b3af5fc Streamline menu entry to open Syncthing in Plasmoid with other places 2020-05-31 00:24:58 +02:00
Martchus 66f8555d0a Support "Recent changes" tab by keyboard navigation in Plasmoid 2020-05-26 18:12:16 +02:00
Martchus e8952e77d1 Fix connecting autom. in plasmoid when systemd integration is used 2020-05-25 20:30:39 +02:00
Martchus 14ddb6d035 Hide connect button while connecting in plasmoid like in widgets-based app 2020-05-25 20:30:39 +02:00
Martchus e44a523e3a Update translations 2020-05-05 19:02:30 +02:00
Martchus 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
Martchus a2695311d4 Fix QML warnings in TinyButtonStyle.qml 2020-04-27 23:47:52 +02:00
Martchus 8971f294e8 Improve Plasmoid's connections menu further 2020-04-14 18:15:30 +02:00
Martchus 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
Martchus fca8ccad4d Use PlasmaComponents.Menu instead of ugly default QCC1 Menu 2020-04-13 02:46:13 +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 d50cdf3a06 Use consistent icon for rescanning all folders in plasmoid 2020-03-26 22:48:54 +01:00
Martchus 5e773619cb Prevent installing .gitignore as part of the plasmoid package 2020-03-18 17:26:22 +01:00
Martchus b8edea29f9 Update translations 2020-03-01 22:06:18 +01:00
Martchus 6921f9aa89 Configure bright colors for recent changes model 2020-02-29 13:17:38 +01:00
Martchus 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
Martchus 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
Martchus 94753de797 Fix start/stop button tooltip for system-wide systemd service 2020-02-02 19:51:16 +01:00
Martchus dab3fd7e31 Update translations 2020-01-18 16:47:51 +01:00
Martchus 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
Martchus 6026339c83 Show recent changes 2020-01-18 16:43:13 +01:00
Martchus e76d4afff5 Improve layout of Plasmoid appearance settings page 2020-01-11 21:42:25 +01:00
Martchus 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
Martchus 04b6ff9bf1 Update translations 2019-12-18 00:31:53 +01:00
Martchus 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
Martchus 7c3a9634ae Enable wrapping of longer labels of plasmoid appearance settings 2019-12-15 20:21:51 +01:00
Martchus d5cd80fe5b Update translations 2019-11-30 18:48:05 +01:00
Martchus 32996b8894 Improve sizing of Plasmoid 2019-11-30 18:47:58 +01:00
Martchus 3586bbf032 Amend commend regarding Plasma workaround
It seems like version 5.17.0 is already affected.
2019-10-31 18:49:49 +01:00
Martchus e31edb5579 Document testing within the real Plasma shell 2019-10-27 19:17:37 +01:00
Martchus e063dc6c18 Hack around plasmashell 5.17.1 ignoring parent's height 2019-10-27 18:54:52 +01:00
Martchus 38987707bd Update translations 2019-10-09 23:23:02 +02:00
Martchus 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
Martchus 22af85aaf2 Update README.md
* Update Plasmoid screenshot
* Add Xfce to tested platforms
2019-08-12 00:33:23 +02:00
Martchus 47fae26975 Construct QList for pages from initializer list 2019-08-10 22:04:39 +02:00
Martchus 1c13908381 Format QML files 2019-08-08 23:10:15 +02:00
Martchus 072bef22c5 plasmoid: Prevent overlapping status info 2019-08-08 21:51:27 +02:00
Martchus b9402ce374 plasmoid: Ensure keyboard events can be received after initialization 2019-08-08 21:35:56 +02:00
Martchus 1982d26295 Remove code duplication in SyncthingApplet 2019-08-01 19:08:58 +02:00
Martchus 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
Martchus 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
Martchus 03d15d5bfb Update notes about Plasmoid testing 2019-07-26 22:02:27 +02:00
Martchus 205189c34a Update translations 2019-07-21 22:37:23 +02:00
Martchus 62fc662692 Add tooltips to plasmoid statistics 2019-07-21 22:33:52 +02:00
Martchus b9e9d76594 Update translations 2019-07-13 13:38:51 +02:00
Martchus 335913c8ca Fix build without systemd support 2019-07-13 13:21:02 +02:00
Martchus 2112b00347 Allow to show start/stop button for launcher 2019-07-12 20:32:55 +02:00
Martchus 6ac633366e Don't use functions obsoleted in Qt 5.13.0 2019-06-25 14:37:14 +02:00
Martchus dc7d9b815f Adapt to changes in c++utilities 2019-06-14 19:15:26 +02:00
Martchus 64473df5ba Adapt to changes in c++utilities 2019-06-10 22:48:26 +02:00
Martchus 4896fc0342 Add screenshot with customized icons 2019-05-28 17:59:43 +02:00
Martchus 0e7cc8ba9b Apply changed status colors without restart 2019-05-19 23:11:50 +02:00
Martchus 72b72b26ae Don't abuse scanning icon to get default logo 2019-05-19 18:04:28 +02:00
Martchus 05da0465a7 Allow customizing status icon colors 2019-05-19 17:57:37 +02:00
Martchus 8dacbaa8d7 Adapt to new c++utilities API 2019-05-05 18:42:19 +02:00
Martchus 0049d96bca Adapt to c++utilities API changes 2019-05-04 22:18:31 +02:00
Martchus d88df866d2 Adapt to c++utilities v5 2019-05-04 21:05:21 +02:00
Martchus 3ff8c2b66c plasmoid: Use tiny button for search 2019-03-20 17:37:34 +01: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 c523f627da Update screenshot, remove outdated ones 2019-03-09 14:55:29 +01:00
Martchus c8f86a3d2e Put plasmoid plugin under plasma/applets 2019-02-27 21:21:07 +01:00
Martchus a6380947ea Fix wrong translation and update translations 2019-02-27 20:45:05 +01:00
Martchus 3e97a65bae Use font awesome icons for global stats in plasmoid 2019-02-27 20:42:41 +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 33e55cc49f Update screenshot of Plasmoid 2019-02-23 13:56:16 +01:00
Martchus 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
Martchus 78d4553104 Update translations 2019-02-18 00:41:17 +01:00
Martchus 06072df707 Show button for about dialog in plasmoid as well 2019-02-17 23:49:39 +01:00
Martchus 2b3a27d537 Replace "Open web UI" with "Open Syncthing" 2019-02-17 23:49:22 +01:00
Martchus e56c950100 Show overall statistics in plasmoid 2019-02-17 23:46:03 +01:00
Martchus 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
Martchus 326f03b604 Apply cmake-format 2019-02-06 17:36:14 +01:00
Martchus d803f83d0f Update translations 2018-11-03 21:41:44 +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 930691ebdc Rename ErrorViewDialog to InternalErrorsDialog 2018-11-03 18:15:10 +01:00
Martchus 900377b036 Stop web view immediately if in background and user disables this 2018-10-28 14:27:25 +01:00
Martchus ece582db04 Fix visibility of "Show errors" button in plasmoid 2018-10-24 21:35:08 +02:00
Martchus 98a6b77013 Use right status in SyncthingApplet::handleConnectionStatusChanged() 2018-10-10 23:37:24 +02:00
Martchus 533a5d0939 Use override 2018-10-10 21:26:46 +02:00
Martchus dda2c411fb Update translations 2018-10-10 21:18:25 +02:00
Martchus 8173cc99e8 Move ChecklistModel (de)serialization to qtutilities 2018-10-10 21:00:13 +02:00
Martchus 87a10c5b33 Allow hiding Plasma applet in certain states
See https://github.com/Martchus/syncthingtray/issues/23
2018-10-10 17:48:48 +02:00
Martchus 587cce4216 Fix plasmoid build error when configured without web view
See https://github.com/Martchus/syncthingtray/issues/19
2018-08-24 15:34:36 +02:00
Martchus af120f1ae1 Update translations 2018-08-05 15:21:12 +02:00
Martchus 7e09d9b707 plasmoid: Emit event when updating connected devs correctly 2018-08-04 15:47:19 +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 db4b032179 Show connected device names in additional status 2018-06-27 17:38:22 +02:00
Martchus e7d365f849 Initialize SyncthingNotifier correctly in Plasmoid 2018-05-15 22:27:54 +02:00
Martchus 49b33e5afe Ensure errors on first connection after startup are handled 2018-05-15 22:01:03 +02:00
Martchus 9ce8c593a2 Require qtutilities 5.10.0 for AboutDialog overload 2018-05-08 19:20:05 +02:00
Martchus 52740c4cbe Update translations 2018-05-08 00:43:15 +02:00
Martchus 29db8b06b2 Fix dependency versions with GCC 8 2018-05-08 00:38:31 +02:00
Martchus bde3734ea4 Add mocks for testing rejected events 2018-05-02 00:00:47 +02:00
Martchus 988765f2ba Show new dev/dir notifications in usual tray icon and Plasmoid 2018-05-01 22:27:03 +02:00
Martchus 2b1c993a64 Handle systemd service state change in Plasmoid
Previously only the initial service state was considered.
After refactoring the SyncthingService initialization the
state is not known when the Plasmoid is initialized so
this limitation became obvious and had to be fixed.
2018-04-12 23:16:51 +02:00
Martchus 0ceb8d5e79 Add high-level abstraction for launching Syncthing
Add new SyncthingLauncher class which lauches Syncthing
under the hood via external SyncthingProcess or using
libsyncthing.

Note: Launching via libsyncthing is still experimental.
2018-04-11 23:16:00 +02:00
Martchus f9305819a7 Update translations 2018-04-02 21:26:05 +02:00
Martchus 146d4870e4 Refactor preventing unwanted error messages
* See https://github.com/Martchus/syncthingtray/issues/15
* Not tested yet
2018-04-02 20:35:30 +02:00
Martchus 8532fbcb57 Specify min. Qt 5 version for fileitemaction and plasmomid 2018-04-01 23:02:14 +02:00
Martchus e9e85e6ba9 Update translations 2018-03-31 22:36:31 +02:00
Martchus d2eb4addd9 Distinguish between local an remote sync in settings 2018-03-31 22:31:28 +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 c1efb690ef Update translations 2018-03-24 17:06:47 +01:00
Martchus 84f0f91a24 Show link-time dependencies in about dialog 2018-03-18 18:24:00 +01:00
Martchus 6be44cc93f Allow restart via plasmoid 2018-02-19 01:38:41 +01:00
Martchus 46a8f8b182 Update translations 2018-02-05 21:58:05 +01:00
Martchus ec8c002408 Update README.md 2018-01-28 18:33:48 +01:00
Martchus 23eb446fd5 Fix handling connection status in plasmoid 2018-01-28 18:08:03 +01:00
Martchus 38ac3504b2 Update German translation 2018-01-27 23:38:26 +01:00
Martchus c9039ff6aa Ensure webview defs are present 2018-01-27 23:34:36 +01:00
Martchus 79fe97d952 Refactor notifications
* Use SyncthingNotifier class
* Show 'Sync complete' on FolderCompletion event
* Add extra structure for stats
2018-01-27 23:27:50 +01:00
Martchus 4aa6d4457b Add the plasmoid install script used for development 2018-01-23 10:50:21 +01:00
Martchus af1f38b9eb Remove obsolete translations 2017-12-30 01:00:55 +01:00
Martchus 404f517b4c Refactor composing "sync complete string"
to prevent code duplication between regular tray
icon and plasmoid.
2017-12-30 00:57:35 +01:00
Martchus bc239b9292 Update translations 2017-11-01 18:30:32 +01:00
Martchus ad9eddc776 plasmoid: Update status correctly after showing notifications 2017-10-16 19:40:44 +02:00
Martchus 5e3b195b44 Update translations 2017-10-05 00:34:00 +02:00
Martchus 4d242f56c6 plasmoid: Improve displaying detail items 2017-10-05 00:10:18 +02:00
Martchus ea96c64563 Update number of connected devices correctly
Computing the number of connected devices on overall
connection status changed event is not sufficient.
2017-10-05 00:08:46 +02:00
Martchus 265e41004f plasmoid: Improve shortcut handling 2017-10-04 00:31:51 +02:00
Martchus c6d21ea3a1 plasmoid: Show start/stop button when systemd available 2017-10-03 23:31:22 +02:00
Martchus eb298d4e4f plasmoid: Improve note about instance specific settings 2017-10-03 16:58:50 +02:00
Martchus 1de35382b7 plasmoid: Open containing directory of downloading items 2017-10-03 16:58:16 +02:00
Martchus 616bcdc497 plasmoid: Allow showing new notifications via button 2017-10-01 21:42:26 +02:00
Martchus eb3b74eec1 plasmoid: Attempt to ensure details view uses full width 2017-10-01 21:22:44 +02:00
Martchus ee812781bb plasmoid: Fix referencing openButton of DownloadsPage 2017-10-01 21:21:10 +02:00
Martchus 177832f40b Update translations 2017-10-01 17:56:26 +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 20eae7fb2c plasmoid: Add context menu to copy value 2017-10-01 17:51:53 +02:00
Martchus 60a322cb4e Get rid of no longer necessary hasBeenShown() checks 2017-09-27 00:21:53 +02:00
Martchus 91c589ce14 plasmoid: Add shortcuts for (almost) everything 2017-09-26 23:46:20 +02:00
Martchus ea38ce489d Update documentation about Plasmoid testing 2017-09-26 23:45:44 +02:00
Martchus 640f0e5b08 Update translations 2017-09-26 15:45:36 +02:00
Martchus 3aa09abd9e plasmoid: Prevent warnings
TODO: Further investigate this unexpected condition
2017-09-26 15:45:03 +02:00
Martchus 16854a110e plasmoid: Only enable rescan button for unpaused dirs 2017-09-26 15:28:10 +02:00
Martchus f7d5894f94 Improve appearance option page of Plasmoid 2017-09-20 17:42:51 +02:00
Martchus 4920e885ea Apply size also when Plasmoid displayed on edges 2017-09-20 17:42:22 +02:00
Martchus 2ee7b9af64 plasmoid: Improve settings
* Configure appearance options via Plasmoid specific
  settings
* Allow to configure the size
* Remember last connection config
2017-09-18 20:29:36 +02:00
Martchus 08373aea7b plasmoid: Trigger saving settings in handler 2017-09-17 21:49:51 +02:00
Martchus 69ffaeb1f3 Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:48:15 +02:00
Martchus c5529506a7 Update Plasmoid screenshots 2017-09-14 23:47:00 +02:00
Martchus 0d7f20cee1 plasmoid: Add more shortcuts 2017-09-12 00:01:19 +02:00
Martchus d3b1da2def plasmoid: Customize buttons
* Use less space
* Fix iconSource when menu present
2017-09-12 00:00:31 +02:00
Martchus ee5c38dd7d Make option pages configurable for different GUI types 2017-09-11 23:47:46 +02:00
Martchus edb6f10e62 Update screenshot of Plasmoid 2017-09-09 22:20:54 +02:00
Martchus 8d35251234 Update translations 2017-09-09 21:40:19 +02:00
Martchus ccfe0e160e Improve plasmoid: most features implemented now 2017-09-09 21:40:00 +02:00
Martchus ceb1d87398 plasmoid: Fix check for D-Bus support in qtutilities
The property COMPILE_DEFINITIONS is not available when
using qtutilities as imported target so INTERFACE_COMPILE_DEFINITIONS
must be used instead.
2017-09-09 15:39:39 +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 7a1dda6235 plasmoid: Show downloads 2017-09-08 17:01:51 +02:00
Martchus 735f17d2b9 plasmoid: Add screenshot 2017-08-30 22:41:10 +02:00
Martchus 9d86e1900d plasmoid: Fix about dialog 2017-08-30 22:41:02 +02:00
Martchus afb7be7ccb plasmoid: Fix ID 2017-08-30 22:40:51 +02:00
Martchus f9b6441a8e Add Plasmoid (still experimental and incomplete) 2017-08-30 00:04:35 +02:00