mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 22:17:45 +00:00
Everywhere: Move Base/res/terminal-colors to Base/res/color-schemes
This commit is contained in:
parent
534f3faa2f
commit
4aec8491d6
19 changed files with 6 additions and 5 deletions
|
@ -48,7 +48,7 @@ SettingsDialog::SettingsDialog(GUI::Window* parent, size_t board_rows, size_t bo
|
|||
|
||||
static Vector<DeprecatedString> color_scheme_names;
|
||||
color_scheme_names.clear();
|
||||
Core::DirIterator iterator("/res/terminal-colors", Core::DirIterator::SkipParentAndBaseDir);
|
||||
Core::DirIterator iterator("/res/color-schemes", Core::DirIterator::SkipParentAndBaseDir);
|
||||
while (iterator.has_next()) {
|
||||
auto path = iterator.next_path();
|
||||
color_scheme_names.append(path.replace(".ini"sv, ""sv, ReplaceMode::FirstOnly));
|
||||
|
|
|
@ -42,7 +42,7 @@ static ErrorOr<Vector<Color>> get_color_scheme_from_string(StringView name)
|
|||
"White"sv
|
||||
};
|
||||
|
||||
auto const path = DeprecatedString::formatted("/res/terminal-colors/{}.ini", name);
|
||||
auto const path = DeprecatedString::formatted("/res/color-schemes/{}.ini", name);
|
||||
auto color_config_or_error = Core::ConfigFile::open(path);
|
||||
if (color_config_or_error.is_error()) {
|
||||
return Error::from_string_view(DeprecatedString::formatted("Unable to read color scheme file '{}': {}", path, color_config_or_error.error()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue