Commit graph

3710 commits

Author SHA1 Message Date
llama
dd0a676fcd
update platform-specific uninstall fns 2025-10-24 20:02:03 +08:00
llama
8f1a3dca94
implement uninstall rpcs 2025-10-24 20:01:21 +08:00
llama
dfe77c8a8a
refactor to use traits 2025-10-24 19:31:56 +08:00
llama
316e176d64
add I18nExt trait 2025-10-24 19:27:35 +08:00
llama
fcc0ee3cb7
add StateExt trait 2025-10-24 19:25:58 +08:00
llama
c0eedbc2a4
add todo to uninstall btn 2025-10-20 10:13:41 +08:00
llama
68f9e05249
./ninja format 2025-10-20 10:12:04 +08:00
llama
73ac0a1cfc
convert uv methods back to free fns 2025-10-20 10:11:43 +08:00
llama
36a0e0dcc7
use getState 2025-10-20 10:05:35 +08:00
llama
1ce305620d
extract normal state component out of Start 2025-10-20 10:04:51 +08:00
llama
7b5afb8dd8
add uninstall button 2025-10-20 10:04:38 +08:00
llama
54d9a19a1c
add components 2025-10-20 10:03:45 +08:00
llama
bcd28c03ec
add GetState rpc 2025-10-20 09:58:29 +08:00
llama
0d1204521b
remove snafu for now 2025-10-20 09:57:37 +08:00
llama
1325147854
cleanup 2025-10-18 17:36:23 +08:00
llama
4c27e53c85
remove unused stores 2025-10-18 17:36:12 +08:00
llama
179968d0dc
update tr store in +page.svelte 2025-10-18 17:35:17 +08:00
llama
6f06f81f06
./check 2025-10-18 10:52:00 +08:00
llama
cd78dd9c95
add favicon 2025-10-18 10:08:44 +08:00
llama
49e850c7da
refactor Start.svelte 2025-10-18 10:08:29 +08:00
llama
3bb77f964d
add components 2025-10-18 10:07:18 +08:00
llama
1f7fe021df
modify Warning to take icon 2025-10-18 10:03:41 +08:00
llama
167551839d
provide tr as store to avoid using {#key ...} 2025-10-18 10:02:28 +08:00
llama
b97b8462d9
remove getVersions call 2025-10-18 10:01:38 +08:00
llama
9434499e7a
add font fallback 2025-10-18 10:00:53 +08:00
llama
a379e20ddd
update tauri.conf.json 2025-10-18 10:00:11 +08:00
llama
b04520a352
refactor and implement rpc commands 2025-10-18 09:58:58 +08:00
llama
572cbf1043
remove unneeded rpc error message 2025-10-18 09:58:07 +08:00
llama
eaa514fb7a
refactor app 2025-10-18 09:56:47 +08:00
llama
6d6df1c91d
refactor state and uv code 2025-10-18 09:55:07 +08:00
llama
920fbdba7a
update capabilities 2025-10-18 09:52:19 +08:00
llama
778955beb0
add tauri-plugin-dialog crate
to make alert() work
2025-10-18 09:42:26 +08:00
llama
d4565742d8
qt/launcher-gui 2025-10-14 09:22:33 +08:00
nav1s
ab2fe98c54
feat: add tooltips for sidebar items in the browse cards window (#4385)
* feat: add tooltips for all of the sidabar items in the browse cards window

* fix: add name to CONTRIBUTORS
2025-10-13 09:27:40 +03:00
Arold0
d11b74fd38
Fix fatal error when double clicking Add button (#4377)
Prevent adding a note that has already been added by checking if
note.id is set before attempting to add it. This fixes a race
condition when the Add button is clicked multiple times quickly.

Fixes #4376
2025-10-05 15:58:16 +03:00
user1823
1ba4512011
Fix launcher strings (#4375)
* Fix launcher strings

* Add prompt to press enter for installation

* Prompt should appear after ensuring that the OS is supported
2025-10-02 21:50:44 +07:00
matbe766
b2bb85b1a2
Avoid QProgressBar overflow by normalizing to kilobytes (fixes #4341) (#4354)
* qt: normalize large progress totals to kilobytes to avoid QProgressBar overflow (#4341); docs: update CONTRIBUTORS

* update

* revert: keep ProgressManager generic; no autoscaling in progress.py

* revert: keep ProgressManager generic; do scaling only in full sync

* Simplify sync progress update by scaling to KB, fix CONTRIBUTORS
2025-10-02 16:59:09 +07:00
llama
a842ba1498
replace more hardcoded strings in the launcher with translations (#4368) 2025-09-30 00:13:09 +10:00
Elias
f5f60548db
Fix browser search newlines and update CONTRIBUTORS (#4336) 2025-09-27 17:21:57 +10:00
llama
e0b0d0d19b
feat: add i18n to launcher (#4361)
* add anki_i18n and locale_config crates to launcher

* add launcher.ftl

* add tr to state

* replace most hardcoded strings with translations

* add support for `launcher` rustcfg to trim translations

* use marker structs to denote type of translations

* move underscores into generated code

* Update cargo-license, which may fix the license order issue (dae)
2025-09-27 16:58:46 +10:00
llama
c56e6e55ec
feat: show saved custom colours as options in fill tool colour picker on mobile (#4348)
* add GetCustomColours rpc method

* save colours as rgb instead of argb

* show saved custom colours as possible options in colour picker

this is primarily for mobile clients, as qt currently ignores this

* save custom colours on colour picker change (for desktop)
2025-09-25 06:34:27 +03:00
Damien Elmes
04a0b10a15 Launcher now checks Windows version
https://forums.ankiweb.net/t/issue-with-installing-anki-launcher-into-custom-folder/66355
2025-09-23 19:50:40 +10:00
Damien Elmes
0d31c6de4a Hard-code more mime types
If I had a dollar for all the weird and wonderful ways Windows systems
can be broken, I'd be a very rich man.

https://forums.ankiweb.net/t/the-gear-icon-in-the-anki-interface-is-not-displaying-properly/66274
2025-09-23 18:00:55 +10:00
Damien Elmes
48f774c711 Add Kazakh to language list 2025-09-21 22:45:11 +10:00
llama
80cff16250
fix: persist colour picker's custom palette in profile (#4326)
* add SaveCustomColours rpc method

* restore custom colour palette on editor init

* save custom colour palette on colour picker open and input

there doesn't seem to be an event fired when the picker is
cancelled/closed, so it's still possible for work to be lost

* save colours on `change` instead of `input`

`input` is supposed to be fired on every adjustment to the picker
whereas `change` is only fired when the picker is accepted, but qt
seems to treat both as the latter, so this is currently a no-op

* Store colors in the collection

One minor tweak to the logic while I was there: an invalid color no
longer invalidates all the rest.

---------

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2025-09-17 16:46:53 +10:00
jcznk
ec6f09958a
(UI polish) Improved margins in Card Browser's "Previewer" (#4337)
* Improved margins in Card Browser's "Preview" pane

* Alternate approach that looks good on Mac too

---------

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2025-09-17 15:30:22 +10:00
snowtimeglass
c2957746f4
Make timebox message translatable with flexible variable order (#4338)
* Make timebox message translatable with flexible variable order

Currently, the timebox dialog message is built from two separate strings,
each containing one variable:
"{ $count } cards studied in" + "{ $count } minutes."

As a result, translators cannot freely reorder the variables in their translations.

This change introduces a single string with both variables, allowing translators
to adjust the order for more natural expressions in their languages.

* Preserve old string for now

* Ensure message doesn't display over two lines

---------

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2025-09-17 15:13:59 +10:00
jcznk
4506ad0c97
Prevent clipping for QPushButton:default (#4323) 2025-09-14 20:44:16 +03:00
Damien Elmes
58deb14028 Ensure the newly-spawned terminal doesn't inherit the env var
It seems like the open call was leaking it into the newly spawned
process.

Follow-up fix to 2491eb0316
2025-09-04 16:18:11 +10:00
Damien Elmes
08431106da Exclude SSLKEYLOGFILE from Python
Closes #4308
2025-09-04 13:20:12 +10:00