39b7ac90d4
refactor(RD): unify download dialogs into a single file
...
No need for multiple files since the subclasses are so small now
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:06 -03:00
ef87bdf18a
fix(RD): prevent weird behavior of progress widget
...
when i.e. clicking on links or just using the downloader at all, this
prevents some flickering and the widget never getting hidden in some
cases.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:06 -03:00
433a802c6e
refactor: put resource downloading classes in common namespace
...
Puts them all inside the 'ResourceDownload' namespace, so that it's a
bit clearer from the outside that those belong to the same 'module'.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:06 -03:00
6a18079953
refactor: generalize mod models and APIs to resources
...
Firstly, this abstract away behavior in the mod download models that can
also be applied to other types of resources into a superclass, allowing
other resource types to be implemented without so much code duplication.
For that, this also generalizes the APIs used (currently, ModrinthAPI
and FlameAPI) to be able to make requests to other types of resources.
It also does a general cleanup of both of those. In particular, this
makes use of std::optional instead of invalid values for errors and,
well, optional values :p
This is a squash of some commits that were becoming too interlaced
together to be cleanly separated.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:00 -03:00
b937d33436
Merge pull request #714 from redstrate/cmark
2023-01-13 16:16:00 -03:00
b2f48eaeb8
Merge branch 'PrismLauncher:develop' into instance-accounts
2023-01-12 20:11:46 -08:00
160dd09fc2
Fix instance account selector face for offline accounts
2023-01-12 20:03:31 -08:00
807da6a035
fix: Remove extra line breaks for modrinth descriptions
...
Signed-off-by: Joshua Goins <josh@redstrate.com >
2023-01-12 10:08:52 -05:00
22a2b7ac46
refactor: support system and bundled cmark
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2023-01-12 10:08:52 -05:00
24a4bd3a1c
refactor: replace hoedown markdown parser with cmark
...
Signed-off-by: Joshua Goins <josh@redstrate.com >
2023-01-12 10:08:52 -05:00
fff52cb247
feat: add button to import component JSONs
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2023-01-11 13:50:57 +01:00
219c5b323d
Merge pull request #731 from flowln/windows_server_trash
2023-01-11 09:49:20 +01:00
391ef64c22
fix(FileSystem): don't attempt to trash items on Windows Server
...
For some reason this makes some of our CI test runs super slow, and
sometimes fail miserably.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-10 12:50:56 -03:00
668b19d119
Add hint about Cat
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:09:57 +01:00
5c48f0b458
fix: set minimum size for setup wizard
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2023-01-10 16:06:50 +01:00
689fe1e2c7
CRLF -> LF
...
damn you visual studio for creating CRLF files everywhere...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:50 +01:00
7d440402ad
Update launcher/Application.cpp with suggestion from scrumplex
...
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net >
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:42 +01:00
6daa457838
Implement Suggestions from flow & Scrumplex
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:42 +01:00
49d317b19a
UX tweak + formatting + added cat to wizard
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:24 +01:00
1b80ae0fca
add theme setup wizard
...
Signed-off-by: Tayou <tayou@gmx.net >
2023-01-10 16:06:01 +01:00
61144f7a21
Merge pull request #726 from TheLastRar/qt6-win-darkmode
...
Closes https://github.com/PrismLauncher/PrismLauncher/issues/158
2023-01-10 08:48:17 +01:00
574af2c795
chore: cleanup review suggestions
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-09 17:18:08 -07:00
a4870d4834
fix: fix #700
...
fixed by properly converting from a file path and converting to native seperators.
should have known naive handling of file path as a URL would come back to bite us cross platform.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-09 17:00:12 -07:00
78bbcac0ea
ui: Let Qt 6.4.2 handle dark mode titlebar
...
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com >
2023-01-09 19:44:11 +00:00
ca9b2525c8
Merge pull request #715 from getchoo/add-teawie
2023-01-09 09:46:31 +01:00
9de6927c3f
feat: add CC BY-SA 4.0 info for teawie images
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 19:18:22 -05:00
30b01ef053
fix: *sigh* no implicit QString->QFileInfo conversion in Qt6, again...
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-07 15:04:23 -07:00
03b75bf2a9
feat: Import all the things!
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-07 15:04:22 -07:00
f3f628410d
Merge pull request #576 from Ryex/identify-zip-packs
...
fix https://github.com/PrismLauncher/PrismLauncher/issues/349
2023-01-07 17:33:34 +01:00
9901ecda49
Merge pull request #710 from byquanton/develop
...
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/708
2023-01-07 17:18:10 +01:00
f5955a4738
feat: add bday teawie
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 04:47:53 -05:00
e018b30875
fix: make spooky teawie load
...
gimp fail
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 04:38:26 -05:00
2dbd775cf3
feat: add xmas teawie
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 04:37:41 -05:00
a5051327db
feat: add spooky teawie
...
Signed-off-by: seth <getchoo@tuta.io >
2023-01-07 03:42:53 -05:00
8140f5136d
feat: add teawie
...
drawn by sympathytea (https://github.com/SympathyTea )
Signed-off-by: seth <getchoo@tuta.io >
2023-01-06 22:28:15 -05:00
f04703f09b
Strip certain HTML tags when rendering mod pages
...
Some mod pages use certain tags for centering purposes, but trips up
hoedown.
Signed-off-by: Joshua Goins <josh@redstrate.com >
2023-01-06 15:05:19 -05:00
2faf8332ee
fix: Add 1.16+ Forge library prefix in TechnicPackProcessor.cpp
...
Signed-off-by: byquanton <32410361+byquanton@users.noreply.github.com >
2023-01-06 02:44:10 +01:00
e0e3d4d8fe
Merge branch 'PrismLauncher:develop' into instance-accounts
2023-01-02 11:59:29 -07:00
ba81ad1ac3
Reword instance-specific account settings, apply clang-format
...
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
eefb259ddf
Remove unecessary delete in InstanceSettingsPage destructor
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
9b8add1961
Properly connect signal in instance settings for account selector
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
e186523878
Add null check for face in instance account settings selector
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
021e6c02d7
Replace unecessary type check with assertion in InstanceSettingsPage
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com >
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
cba3d68063
Fix conflicting layout name in InstanceSettingsPage
...
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
7e2d78bab5
Allow selecting a default account to use with an instance
...
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com >
2023-01-02 11:17:19 -07:00
0ebf04a021
fix newlines
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-30 10:21:49 -07:00
d55f47077a
Merge pull request #626 from leo78913/mods-provider-column
...
closes https://github.com/PrismLauncher/PrismLauncher/issues/402
2022-12-30 11:39:03 -03:00
7f438425aa
refactor: add an identify
function to make easy to reuse
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-29 19:47:19 -07:00
c470f05abf
refactor: use std::filesystem::rename insted of copy and then moving.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-29 17:21:54 -07:00
141e94369e
feat(Mods): hide 'Provider' column when no mods have providers
...
This makes the mod list look a bit less polluted in the common case of
mods having no provider whatsoever.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-12-29 13:21:49 -03:00