Commit Graph

2709 Commits

Author SHA1 Message Date
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
miruka
93eba7ce92 Fix incorrect account switching keybind order
The keybinds to switch to the first room in account number X did not
behave properly when the accounts weren't ordered lexically.
2021-03-03 17:13:51 -04:00
miruka
3564e7a571 Turn bookmarks/aliases/at_index into Sections 2021-03-03 17:13:51 -04:00
miruka
fbd3f6f4a2 PCN: allow adding new properties at run-time 2021-03-03 17:13:51 -04:00
miruka
9348df32f7 PCN: support quoted strings as property names 2021-03-03 17:13:51 -04:00
miruka
999953bc77 Add redbaron to requirements.txt (for PCN parser) 2021-03-03 17:13:51 -04:00
miruka
cd2ea17614 Add NixOS package to INSTALL.md 2021-03-03 17:13:51 -04:00
miruka
506b35a385 Add Debian package section to INSTALL.md 2021-03-03 17:13:51 -04:00
miruka
df2b913573 Add CONTRIBUTING.md 2021-03-03 17:13:51 -04:00
miruka
2efaeeb887 Move CHANGELOG.md, INSTALL.md and TODO.md to docs/ 2021-03-03 17:13:51 -04:00
miruka
bffd6bab4b Move README screenshots to a new "docs" folder 2021-03-03 17:12:09 -04:00
miruka
96e7c6c367 Move .desktop & icon files to packaging dir 2021-03-03 17:12:09 -04:00
miruka
db12036372 Use new PCN format for settings config file 2021-03-03 17:12:09 -04:00
miruka
6ce3059322 Raise error if loading a JSON fails
Don't use the default config if there's an error in a JSON config file,
a single typo could lead to an entire user settings file getting
overwritten by default data.
2021-03-03 17:12:09 -04:00
miruka
75fbf23b21 Refactor user_files module & add live reloading
- Cleaner design for the backend user_files classes and simplified
  interaction with QML
- Config and theme files will now automatically reload when changed on
  disk
- Removed manual reload keybind and button
2021-03-03 17:12:09 -04:00
miruka
00c468384a Delay increasing timeline cache buffer, reduce lag
When switching rooms, first load only the delegates in the user's view
and wait a second before expanding the cacheBuffer and loading more
delegates outside the view. This reduces the amount of delegates to load
all at once by 3x.
2021-03-03 17:12:09 -04:00
miruka
ce3ed86bef Fix timeline occasionally breaking on room switch
When a chat page is recycled, set the eventList model to
null, wait for any animations to finish, then explicitely reassign it.
This prevents from model from randomly mixing up old and news delegates.
2021-03-03 17:12:09 -04:00
miruka
9ef13c9d50 idleMilliseconds: return -1 if WAYLAND_DISPLAY set
CppUtils.idleMilliseconds(): If the WAYLAND_DISPLAY environment
variable is set, assume we're running under a Wayland environment
and return early before trying to connect to an X11 display.
2021-03-03 17:12:09 -04:00
miruka
acce5d60ae Prevent error spam when XScreenSaver not supported
If XScreenSaver is available but not supported
(e.g. when running in XWayland), return -1 for
Utils.idleMilliseconds(), instead of letting the code fail and print an
error every time this function gets called to check for the machine's
idle time.
2021-03-03 17:12:09 -04:00