Matthias Hagmann
eb937fcc3a
Manually fix linter issues
...
Related #2295
2024-02-20 15:41:10 -05:00
Matthias Hagmann
7774569971
Apply ruff format
...
Run ruff auto formatting using:
ruff format .
Related #2295
2024-02-20 15:41:10 -05:00
Peter F. Patel-Schneider
d1c899d6da
solaar: improve imports and guard Gtk, etc imports with correct version
...
solaar: move imports to top of files
solaar: move more imports to top of files
solaar: guard Gtk, etc imports with correct version
2024-02-18 06:21:35 -05:00
Peter F. Patel-Schneider
17e6463950
ui: improve imports in ui
...
ui: move imports in about.py to top of file
ui: move imports to top of notify.py
ui: move imports to top of window.py
ui: reorder imports at beginning of __init__.py
ui: move imports to top of tray.py
ui: move common code out of __init__.py to common.py
ui: move imports to top of __init___.py
2024-02-18 06:21:35 -05:00
MattHag
87658fb189
logging: Simplify logger instantiation
...
* logging: Simplify logger instantiation
Relates #2254
* logging: Remove aliases
Relates #2254
* logging: Replace deprecated warn with warning
Related #2254
* logging: Fix mistake
Related #2257
2024-02-10 13:55:27 -05:00
Peter F. Patel-Schneider
5ca1790cb8
ui: better handling and installation of icons
2023-11-19 12:06:04 -05:00
Peter F. Patel-Schneider
d7bd55bdf1
device: upgrade messages when no supported device found
2023-08-02 20:34:27 -04:00
Peter F. Patel-Schneider
4a9b46679c
ui: rearrange code in tray.py
2023-04-05 11:55:53 -04:00
Peter F. Patel-Schneider
8941d2cfde
ui: remove blank lines from system tray popup
2022-06-24 09:43:30 -04:00
Peter F. Patel-Schneider
a5ff1c21cb
ui: put battery information in tray menu labels
2022-05-18 18:24:35 -04:00
Peter F. Patel-Schneider
6c02417037
ui: allow tray icon to scroll whenever at least two devices
2022-03-17 14:05:09 -04:00
Peter F. Patel-Schneider
1ace3ef4f4
ui: hide system tray icon when there are no devices to control
2022-01-22 09:57:28 -05:00
Peter F. Patel-Schneider
aa8d2fcac4
ui: don't use new_from_icon_set for tray menu icons as it is deprecated
2021-12-26 10:32:59 -05:00
Peter F. Patel-Schneider
07e55c188a
ui: don't include separator after receiver in tray menu
2021-11-29 19:15:41 -05:00
Peter F. Patel-Schneider
c515de9b09
ui: harmonize order of tray items and main window items
2021-11-29 19:15:41 -05:00
Peter F. Patel-Schneider
adae5a2e2b
ui: add option to specify use of explict tray icon files and their size
2021-11-29 17:54:31 -05:00
Peter F. Patel-Schneider
4c9d9e17d6
gui: fix bug when adding new receiver to tray menu
2021-11-22 11:32:25 -05:00
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