tootle-linux-client/src/Services/Settings.vala

33 lines
845 B
Vala
Raw Normal View History

2020-05-29 14:19:35 +02:00
using GLib;
public class Tootle.Settings : GLib.Settings {
public string active_account { get; set; }
2020-05-29 14:19:35 +02:00
public bool dark_theme { get; set; }
2020-05-31 21:56:03 +02:00
public bool autostart { get; set; }
public bool work_in_background { get; set; }
public int timeline_page_size { get; set; }
public int post_text_size { get; set; }
public bool live_updates { get; set; }
public bool public_live_updates { get; set; }
2020-08-01 19:56:12 +02:00
public bool aggressive_resolving { get; set; }
2020-05-29 14:19:35 +02:00
public Settings () {
Object (schema_id: Build.DOMAIN);
init ("active-account");
2020-05-29 14:19:35 +02:00
init ("dark-theme");
2020-05-31 21:56:03 +02:00
init ("autostart");
init ("work-in-background");
init ("timeline-page-size");
init ("post-text-size");
init ("live-updates");
init ("public-live-updates");
2020-08-01 19:56:12 +02:00
init ("aggressive-resolving");
2020-05-29 14:19:35 +02:00
}
void init (string key) {
bind (key, this, key, SettingsBindFlags.DEFAULT);
}
}