Commit Graph

2727 Commits

Author SHA1 Message Date
miruka
da7c1541a5 CONFIG.md: point to app --help for env variables 2021-03-03 17:14:55 -04:00
miruka
626a43b7b0 Replace pprintpp usage by devtools.debug 2021-03-03 17:14:55 -04:00
miruka
0dadf7de97 Have split python_(remote_)debugger keybinds
python_debugger (shift+F1) will now always start pdb, and
python_remote_debugger will always start remote_pdb.
Since the new autoreload.py script doesn't break stdin like entr with
live-reload.sh did, we can now use pdb if the app is connected to a
terminal.
2021-03-03 17:14:55 -04:00
miruka
e4959f503c Reimplement swipe to exit sidepane via DragHandler 2021-03-03 17:14:55 -04:00
miruka
7029148c87 Fix some chat right pane issues
- Remove the default Qt dragMargin: when the right pane was
  hidden/collapsed in the interface, accidentally clicking on this
  invisible 10 pixel-wide zone to the right edge of the window
  would interfere with any button under it, e.g. the button to
  expand the pane

- Fix expand pane button failing to bring back pane (due to dragMargin)
  and turning the chat page header invisible

- Disable swiping to exit panes, interferes with buttons and tiles
2021-03-03 17:14:55 -04:00
miruka
f9ec2863ff Fix appimage build.sh to compile with dbus 2021-03-03 17:14:55 -04:00
miruka
2de3060dc3 requirements.txt: update Pillow and aiofiles 2021-03-03 17:14:55 -04:00
miruka
01adc71646 Catch error when sending dbus notification fails 2021-03-03 17:14:55 -04:00
miruka
98b6a7b74e Add detail tooltips in server browser stability %
When hovering on stability percentages in the server browser, a tooltip
now shows the total downtime in the past 30 days, number of incidents,
their average length and the longest's duration.
2021-03-03 17:14:55 -04:00
miruka
ae4bcffa06 settings.py: add Chat.Composer.TypingNotifications 2021-03-03 17:14:55 -04:00
miruka
fda5bc0039 Add CLI arguments parsing + --start-in-tray
- Loading a QML file in place of src/gui/UI.qml is now possible via
  -l / --load-qml instead of taking the first positional argument

- New option to start application in tray without showing a window

- --help and --version
2021-03-03 17:14:55 -04:00
miruka
50d4aae188 Remove unused ExitRequested pyotherside event 2021-03-03 17:14:55 -04:00
miruka
ddc5b8b933 Replace live-reload.sh by autoreload.py
entr is a glitchy mess that keeps restarting for no reason and prevents
pdb usage due to stdin takeover, use a python script instead that
doesn't need external utilities.
2021-03-03 17:14:55 -04:00
miruka
768ac47c22 Add missing hsluv to requirements.txt 2021-03-03 17:14:55 -04:00
miruka
db33ad6d3d CONFIG.md: add default reset_zoom key to example 2021-03-03 17:14:55 -04:00
miruka
8175bbde0e Fix keyboard scrolling when kinetic is disabled 2021-03-03 17:14:55 -04:00
miruka
56459a0d3d CONFIG.md: add hint about disable kinetic scroll 2021-03-03 17:14:55 -04:00
miruka
fe9d26eaf8 Add some stuff to CONTRIBUTING.md 2021-03-03 17:14:55 -04:00
miruka
aaf0eb2f09 INSTALL.md: add missing ```sh code fences 2021-03-03 17:14:55 -04:00
miruka
69a338f610 Fix handling errors in config files on startup 2021-03-03 17:14:55 -04:00
miruka
f9d1ec6e8a CONFIG/THEMING.md: add info about manual reload 2021-03-03 17:14:55 -04:00
miruka
c084db201a live-reload.sh: app handles config/theme reloading 2021-03-03 17:14:55 -04:00
miruka
199ec7646b Watch files included from PCN files (auto-reload) 2021-03-03 17:14:55 -04:00
miruka
99e2be650b Install default config into $PREFIX/share/examples 2021-03-03 17:14:55 -04:00
miruka
9769a84bb7 Update README to point to new documentation files 2021-03-03 17:14:55 -04:00
miruka
c80316c8e1 Add THEMING.md 2021-03-03 17:14:55 -04:00
miruka
1a101d9888 Disable new theme test code for now 2021-03-03 17:14:55 -04:00
miruka
71acca2168 Add CONFIG.md and PCN.md documentation 2021-03-03 17:14:55 -04:00
miruka
8db275ab37 Fix DebugConsole up/down with word-wrapped lines
Fix these issues:

- When the cursor was on the last soft-line of a word-wrapped line,
  pressing down wouldn't go to the next history entry

- When the cursor was after the first soft-line of a word-wrapped line
  and that line was the first of the text area, pressing up would
  go to the previous history entry instead of moving the cursor to the
  first soft-line
2021-03-03 17:14:55 -04:00
miruka
8d4e67d6a4 Fix EventList stuff depending on scroll position
Add visibleStart/End properties to HListView that take into account the
ListView's originX/Y, and not just contentX/Y which can be largely
offset.

Use those new properties in EventList for message focusing (fix
ctrl+up/down sometimes incorrectly focusing the message at the middle of
the screen even when we're scrolled at the bottom), and detection of
when we can update the read marker (fix cases when we're scrolled at the
bottom but the read marker never updates).
2021-03-03 17:14:55 -04:00
miruka
509b35a633 Make flickToTop/Bottom faster and more accurate 2021-03-03 17:14:55 -04:00
miruka
42f04b013e Add PCN theme system
Coexist with the old theme system for now. QML components have to be
updated to use the new system.
2021-03-03 17:14:55 -04:00
miruka
1af1d30c48 Make color module objects available to PCN 2021-03-03 17:14:55 -04:00
miruka
64c0998a68 Merge color.py and svg_colors.py
The SVG colors are now an enum of Color objects, instead of hex strings.
The "transparent" color was also added, which isn't in the standards but
works in QML.
2021-03-03 17:14:55 -04:00
miruka
c890e7497d README.md: alpha can be set when coloring text 2021-03-03 17:14:55 -04:00
miruka
97cfe7049d Add color.py module for theming 2021-03-03 17:14:55 -04:00
miruka
a53aec0ff9 Fix handling of config file deleted at runtime 2021-03-03 17:14:55 -04:00
miruka
c1dc9a80b2 Fix default data when no .gui.json file exists 2021-03-03 17:14:55 -04:00
miruka
9a813ecaa8 Fix PCN include_builtin() when running under QRC 2021-03-03 17:14:55 -04:00
miruka
388cc0e218 Add an index to CHANGELOG.md 2021-03-03 17:14:55 -04:00
miruka
9895e264a2 Add qmllint to make test 2021-03-03 17:14:55 -04:00
miruka
c401417ff4 Use flake8-isort plugin rather than isort
Simpler to use and has color output
2021-03-03 17:14:55 -04:00
miruka
5f6b751664 Add make test command to mirage.pro 2021-03-03 17:14:55 -04:00
miruka
0fe8138faf Remove nio fork from requirements-dev.txt 2021-03-03 17:14:55 -04:00
miruka
1e002eb4a5 Fix flake8/mypy/isort code errors from new setup 2021-03-03 17:14:55 -04:00
miruka
b170997cdb Add flake8, mypy and isort setup 2021-03-03 17:14:55 -04:00
miruka
eed2cc4818 Remove double blank lines from QML files 2021-03-03 17:14:55 -04:00
miruka
58257c0930 Add note about unofficial packages in INSTALL.md 2021-03-03 17:14:55 -04:00
miruka
f7ee6ba175 Fix links for AUR packages in INSTALL.md 2021-03-03 17:14:41 -04:00
miruka
8125b89178 Add OpenMandriva Lx package to INSTALL.md 2021-03-03 17:13:51 -04:00