sidfactory2
sidfactory2 copied to clipboard
Support custom color schemes
@micheldebree:
In the macOS version, there is no telling where the user puts the drivers, color schemes, and overlays.
Proposed:
- Look for the
.inifile in a fixed location (<user>/.config/sidfactory2/config.ini)- Allow overrides to color schemes and overlay folders (or single folder) in the
config file
This is a task migrated from workstreams in Slack.
The first bullet has been implemented.
Bullet #1 is implemented already; in the config.ini packed inside the app, is an include:
[macos] // Applies to the macos platform only
#include "~/.config/sidfactory2/user.ini"
The color schemes are a bit harder because:
- The built-in schemes are packed inside the app
- The custom schemes in user.ini are relative to the app and cannot be set to something outside the app
- If you could put additional schemes in user.ini there is no way of telling what number it will get without knowing the contents of config.ini (which is inside the app). User needs this number to set the favorite color scheme.
Solution?
- interpret filenames like they are now (relative to the application?) and also (new) allow absolute paths. Or interpret the filenames for color schemes as relative to the ini files they are defined in
- use something else than the index in the list to identify the color scheme so we know how to identify it.
- combine user.ini and config.ini into one set of options (already works like this)
Changed title of the issue; custom config in user.ini is supported on macOS and linux, the only thing that is not really supported is custom colorschemes on macOS