1
0
Fork 0
mirror of synced 2024-08-24 06:32:09 +12:00
Commit graph

69 commits

Author SHA1 Message Date
loathingKernel
1721677e33 GameWidget: Implement reactive and interactive labels
The `status_label` displays what is currently going on with the game.
It reflects the current operation running on it or if it requires special
attention (update, needs verification etc)

The `tooltip_label` displays hover information such as what happens
if a part of the widget is clicked or in the case of the launch button if
the game can run (without version check, offline etc)

The context menu on the widgets will be updated and populated according
to the installation state of the game. Since the context menu was revised
the shortcut creation code was revised too to make it more compact.

the `create_desktop_link` and `get_rare_executable` functions are moved
from `rare.utils.misc` to `rare.utils.paths` to avoid cyclical imports and
better grouping. Two functions are added, `desktop_link_path` to uniformly
calculate the path of the shortcut and `desktop_links_supported` which
checks if Rare supports creating shortcuts on the current platform.
`desktop_links_supported` should be used as safeguard before `desktop_link_path`.

Desktop links are currently untested on Windows but if `shortcut.Description`
works as expected, it should be good to go.
2023-02-07 13:41:59 +02:00
loathingKernel
211f92d2d6 MainTabWidget: Use returned indices instead of hard-coding disabled tabs
Parent the tabs properly for consistency
2023-02-06 09:19:31 +02:00
lennard
378d876c3b
Add Ukrainian language 2022-10-17 20:00:46 +02:00
lennard
fbd16b99ae
Update translations 2022-09-27 21:48:44 +02:00
loathingKernel
e621955a22 RareSettings: Handle permission error when deleting logs 2022-09-13 12:38:43 +03:00
Stelios Tsampas
d5d795ce79 Paths: Query paths after the OrganizationName and ApplicationName have been set
At the point they were evaluated, `OrganizationName` and `ApplicationName` are unset
resulting in wrong paths. As a quick fix, explicitly set them to their later values
Per OS examples:
Windows:
	before:
		data: C:\Users\<user>\AppData\Local
		cache: C:\Users\<user>\AppData\Local\cache
	after:
		data: C:\Users\<user>\AppData\Local\Rare\Rare
		cache: C:\Users\<user>\AppData\Local\Rare\Rare\cache
2022-09-08 01:27:37 +03:00
loathingKernel
f375357a2c Utils: fix unresolved references 2022-08-02 10:42:38 +03:00
loathingKernel
3ecbae0564 Utils: Rename utils.py to misc.py to not confuse PyCharm checker 2022-08-02 10:42:38 +03:00
MultisampledNight
e234656951
Use QStandardPaths everywhere needed 2022-03-31 21:58:18 +02:00
MultisampledNight
a73fb2e01b
Merge create_desktop_link and Rare's version 2022-03-31 21:58:18 +02:00
Dummerle
59a59ddfcc
Rename settings_widgets + fix pylint error 2022-03-14 17:23:54 +01:00
Dummerle
58c9e69231
Add MangoHud Settings + move some settings widgets to extra folder 2022-03-14 17:23:54 +01:00
Dummerle
451371185f
Add Russian + update translations 2022-03-14 17:23:52 +01:00
Stelios Tsampas
d6ef44b2f9
Rare: Implement global objects as functions that return a single instance 2022-02-25 20:22:45 +02:00
Dummerle
2e6890bfd9
Move appdata paths to utils/paths.py to avoid crashes, if PyQt5 does not exist (deb workflow) 2022-02-17 00:04:53 +01:00
Dummerle
5ea799bcdd
Update translations 2022-02-13 17:48:40 +01:00
aznd
9b59707a10
Unify strings formatting (#158)
* Part 1: Unifying strings

* Part 2: Unifying strings

* Part 3: Unifying strings

* Fix missing close bracket

* Remove unneeded str()
2022-02-01 22:29:34 +01:00
Dummerle
af8da372de
Add Portuguese (Brazil) 2022-01-04 21:31:17 +01:00
Dummerle
f7f6d4b42b
Add simplified Chinese language 2022-01-03 23:05:05 +01:00
Stelios Tsampas
8f89eb6e88
Rare: pass through Black formatter 2021-12-27 00:37:13 +01:00
Dummerle
5fa1465719
Fix startmenu and release.yml 2021-12-18 22:57:22 +01:00
Dummerle
db177e162f Some fixes for windows 2021-11-25 21:54:34 +01:00
Dummerle
72d05f6e53
Some optimization for macOS + workflow; cancel launch if confirm is activated; enable button, if queue widget deleted 2021-11-22 20:04:24 +01:00
Dummerle
4c9ef8acd8
Many fixes:
- store: updated epic api + many other fixes
- installing widget has now no border
- disable startmenu and desktop link on unsupported os
2021-11-22 20:02:58 +01:00
Stelios Tsampas
26bbdf1c0e
RareSettings: Reload themes dynamically on selection
It is a unpolished but it serves well as a way to preview the theme.
Awesome font icons are not re-rendered in the correct colors.
Some styles might look a bit broken until restart.
2021-11-21 17:18:36 +02:00
Dummerle
a5f26c8a23 Rename shared.legendary_core to core 2021-10-14 23:18:13 +02:00
Stelios Tsampas
b7edcc062b Rename debug and RPC files for less verbosity
Rename `get_possible_langs` to `get_translations`
2021-10-10 20:47:26 +03:00
Dummerle
3bf6692760 Add shared.py 2021-10-07 20:19:24 +02:00
Dummerle
e79bee57c0 Some fixes for pylint and workflow 2021-09-18 17:21:43 +02:00
BuildTools
740153bd0d Fix create startmenu/desktop link 2021-09-18 16:34:43 +02:00
Dummerle
bb4f08691a Fix set locale to legendary locale + reformatting 2021-09-13 20:24:09 +02:00
Stelios Tsampas
228c3ab03e Move EGL Sync page into the main LegendarySettings page and make it useful. (WIP)
Move GameInfo to its own file.
Use get_pixmap in GameDlcWidget to get the pixmap.
Remove unused function from RareSettings.
Convert About to FormLayout.
2021-09-12 14:23:40 +03:00
Stelios Tsampas
35cbd21bb7 Fix memory leaks in DLC tab. 2021-09-11 00:57:43 +03:00
Stelios Tsampas
45dc4b8e7c Adjust for one-line PathEdit
Make Console font monospaced.
Revert changes in Rare settings because they weren't working.
Replace a few GridLayouts with FormLayouts
2021-09-11 00:57:43 +03:00
Dummerle
f7f7f83101
Merge branch 'main' into dev 2021-09-04 22:49:08 +02:00
Dummerle
83ad8f0982 Icon color depends on theme 2021-08-28 16:01:36 +02:00
Dummerle
8fbf0bcacf Merge Browse and free games in one tab 2021-08-25 00:01:53 +02:00
Dummerle
c212904cc0
Merge branch 'shop' into update_shop 2021-08-22 22:43:08 +02:00
Dummerle
ea78aa7b64 Fix Desktop links (Appimages, wrong path) 2021-08-17 16:54:55 +02:00
Dummerle
e1c6e03812 Add a debug console for games 2021-08-13 22:51:36 +02:00
Dummerle
59a7359e19 Set cache_dir and data_dir in one place (xdg) 2021-08-08 00:49:27 +02:00
Dummerle
a5997f62ab replace os.name with platform.system() to differentiate between mac and linux 2021-06-20 21:55:31 +02:00
Dummerle
0d0b858a8f Optimize search requests and option to cache images 2021-06-13 14:33:17 +02:00
Dummerle
432cdede3a Add logir buttons with functions; optimize repair 2021-05-22 20:28:50 +02:00
BuildTools
0b74eb95e6 Some fixes for Windows 2021-05-21 16:22:30 +02:00
Dummerle
3a39bac09c Reformatting and update german translation 2021-05-21 13:40:10 +02:00
Stelios Tsampas
64712b3eea Make UI default to RareStyle if there are no configuration 2021-05-19 14:01:21 +03:00
Stelios Tsampas
07abdef310 Move behaviour pane below interface pane in rare settings 2021-05-19 13:22:57 +03:00
Stelios Tsampas
f34e1ce61f Add selectable colors schemes and style sheets 2021-05-18 01:59:59 +03:00
Stelios Tsampas
fc8b8bad37 Move .ui and the corresponding .py files into the rare directory under ui for clarity 2021-05-18 01:57:20 +03:00