Peter F. Patel-Schneider
0df6acd67a
ui: better code for adding devices to tray menu
2021-11-09 09:08:16 -05:00
Hugo Osvaldo Barrera
22bf4fafff
Drop unnecessary __future__ imports
...
These are all active by default on all recent Python versions.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
b96d16672b
Drop obsolete encoding declaration
...
This was only parsed in Python 2.
Python 3 only supports UTF-8 for source files, and that's what it uses.
2021-10-30 16:49:41 -04:00
Jocelyn Thode
138fe4c756
ui: fix device not always castable as bool
2021-10-28 12:49:20 -04:00
Peter F. Patel-Schneider
c763886248
ui: use file names for tray icon to not end up with small icons
2021-10-11 20:45:01 -04:00
Peter F. Patel-Schneider
116adf9959
ui: better computation of tray index when adding devices
2021-10-11 20:42:36 -04:00
Peter F. Patel-Schneider
453be19356
ui: make about and quit buttons more translatable
2021-10-01 12:35:33 -04:00
Vinícius
4b97ebd649
po/i18n: update pt_BR translation
2021-08-20 18:44:04 -04:00
Peter F. Patel-Schneider
6099df1b42
ui: do not set attention icon - gets around bug in XFCE 16
2021-04-09 07:28:23 -04:00
Peter F. Patel-Schneider
55ed173c39
ui: replace deprecated GTK stock values
2021-04-09 07:28:23 -04:00
Peter F. Patel-Schneider
593d27770d
ui: only use first element of theme path for appindicator extra path
2021-04-09 07:28:23 -04:00
Peter F. Patel-Schneider
68049efc41
ui: better handling of tray icons
2021-04-09 07:28:23 -04:00
Peter F. Patel-Schneider
1c6f289d91
ui: add option to not use battery icons for tray icon
2021-01-04 09:53:46 -05:00
Peter F. Patel-Schneider
504d23fab7
ui: only emit warning when updating tray for inactive device
2020-11-21 12:32:33 -05:00
Peter F. Patel-Schneider
58823763ea
ui: handle wired devices
2020-09-23 18:03:47 -04:00
Filipe Laíns
27c90fa736
yapf: adjust style to not indent closing brackets
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
8e89aa0038
yapf: set max line lenght to 127
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
627185079f
flake8: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
33521558ed
pre-commit: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
e6369e0c3c
isort: intial import fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Peter F. Patel-Schneider
302720b0db
ui: add --battery-icons=symbolic option to prefer symbolic icons
2020-05-17 16:29:14 +01:00
Peter F. Patel-Schneider
88a0dfff6f
ui: add environment variable to switch to symbolic battery icons in tray
2020-05-02 10:28:51 -04:00
Peter F. Patel-Schneider
f6b0cc59ed
ui: only use file path for tray icon if icon name is file in current directory
2020-04-20 15:21:19 +01:00
Thomas Uhle
ca9f9b3447
ui: add support for Ayatana AppIndicator
2020-04-07 18:58:18 -04:00
Thomas Uhle
5f8dbdeb6d
ui: fix tooltip description
...
The program's name is printed twice if AppIndicator is used and no receiver
is found because AppIndicator always adds the program's name as a title to
the tooltip.
2020-04-01 11:10:54 -04:00
Thomas Uhle
2bdb844557
ui: fix end of iterative calls to _blink()
...
Prepare _icon_before_attention for the next iteration by reinitializing it
at the end of the current iteration.
2020-04-01 11:10:54 -04:00
Thomas Uhle
422f336d70
ui: add missing parentheses to function call
...
Compare function's return value to AppIndicator3.IndicatorStatus.ATTENTION
instead of the function object reference.
2020-04-01 11:10:54 -04:00
Peter F. Patel-Schneider
3a85c4f64b
UI: lookup attention icon filename directly to get around bug in libappindicator
2020-03-17 23:17:59 +00:00
Peter F. Patel-Schneider
687a28d2c2
UI: lookup icon filenames directly to get around bug in libappindicator
2020-03-15 22:00:56 +00:00
Peter F. Patel-Schneider
4afe8c893b
ui: add option to show the main window or run solaar without tray
2020-02-17 08:35:47 +00:00
Alex Cherkayev
6981555804
notifications: fix battery status notification parsing
...
Fix indicator tooltip (duplicate Solaar line, python list instead of battery status).
2019-08-20 09:40:39 +02:00
Peter Wu
c14e30b6f5
Fix crash when AppIndicator3 is unavailable
...
Convert ValueError to an ImportError (hack!) to allow the fallback code
to function.
Fixes https://github.com/pwr/Solaar/pull/276
2016-11-06 19:50:32 +01:00
Chris Mayo
e046455a05
Fix: "AppIndicator3 was imported without specifying a version first"
...
PyGIWarning: AppIndicator3 was imported without specifying a version
first. Use gi.require_version('AppIndicator3', '0.1') before import to
ensure that the right version gets loaded.
2016-05-03 20:20:46 +01:00
Daniel Pavel
9934755566
more translation fixes ( #108 )
2013-08-12 00:32:19 +02:00
Daniel Pavel
5af1719384
tray: always pick the lowest battery, if the user hasn't already
2013-08-08 21:49:59 +02:00
Daniel Pavel
6a66370ffe
scrolling over the tray icon switches among devices; fixes #101
...
It now works for the standard systray as well, not just the
appindicator.
2013-08-08 21:49:54 +02:00
Daniel Pavel
413cebe40f
delay some UI initialization until necessary
2013-08-08 21:49:35 +02:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
ce9b10dc2d
started i18n support
2013-07-15 17:16:44 +02:00
Daniel Pavel
43ab629a26
moved logitech.unifying_receiver package to logitech_receiver
2013-07-12 22:48:09 +02:00
Daniel Pavel
85efe92d30
replaced appinstance with GtkApplication
2013-07-09 17:52:07 +02:00
Daniel Pavel
dbb9025e26
replaced _ dummies with _ignore
2013-07-08 21:21:14 +02:00
Daniel Pavel
39534d11dd
make sure all debug and info loggings are if-guarded
2013-07-07 17:18:42 +02:00
Daniel Pavel
273284da39
use number instead of serial to pick devices in ui (faster start-up)
2013-06-23 12:09:46 +02:00
Daniel Pavel
f9c192c47a
only look for a different tray battery icon if the changed device is a peripheral
2013-06-21 15:19:07 +02:00
Daniel Pavel
fd35f23af7
one a separate flag to check if the device is active
2013-06-21 15:17:14 +02:00
Daniel Pavel
d810ccba84
tray icon: pick the battery of the lowest _active_ device
2013-06-20 17:25:53 +02:00
Daniel Pavel
27de1aea11
tray/window: append new devices rather than inserting them at the top
2013-06-20 14:43:49 +02:00
Daniel Pavel
b2f1786eff
use consistent naming of offline state for devices
2013-06-20 14:18:36 +02:00