Skip to content

Commit

Permalink
I guess 0 can't be a value??
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jul 29, 2024
1 parent d23302e commit 4b6c43c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static GVariant * get_contrast (void)
int hc_option;

if (!g_settings_schema_has_key (bundle->schema, "contrast"))
return g_variant_new_double (1.0); /* No preference */
return g_variant_new_double (2.0); /* No preference */

hc_option = g_settings_get_double (bundle->settings, "contrast");

Expand Down Expand Up @@ -332,7 +332,7 @@ settings_handle_read_all (XdpImplSettings *object,
g_variant_dict_insert_value (&dict, "ensor-scheme", get_ensor_scheme ());
g_variant_dict_insert_value (&dict, "font-weight", get_font_weight ());
g_variant_dict_insert_value (&dict, "roundness", get_ui_roundness ());
g_variant_dict_insert_value (&dict, "high-contrast", get_contrast ());
g_variant_dict_insert_value (&dict, "contrast", get_contrast ());

g_variant_builder_add (builder, "{s@a{sv}}", "org.freedesktop.appearance", g_variant_dict_end (&dict));
}
Expand Down

0 comments on commit 4b6c43c

Please sign in to comment.