initialize static method

Future<GtkThemeData> initialize()

Initialize a GtkThemeData object with the current theme data.

Implementation

static Future<GtkThemeData> initialize() async {
  var data = await _getRawData();

  return GtkThemeData(
    name: data["name"] as String,
    theme_fg_color: data["theme_fg_color"] as int,
    theme_text_color: data["theme_text_color"] as int,
    theme_bg_color: data["theme_bg_color"] as int,
    theme_base_color: data["theme_base_color"] as int,
    theme_selected_bg_color: data["theme_selected_bg_color"] as int,
    theme_selected_fg_color: data["theme_selected_fg_color"] as int,
    warning_color: data["warning_color"] as int,
    error_color: data["error_color"] as int,
    success_color: data["success_color"] as int,
    font: data["font"] as String,
  );
}