54 lines
2 KiB
Vala
54 lines
2 KiB
Vala
/*-
|
|
* Copyright (c) 2015 Erasmo Marín <erasmo.marin@gmail.com>
|
|
* Copyright (c) 2017-2017 Artem Anufrij <artem.anufrij@live.de>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* The Noise authors hereby grant permission for non-GPL compatible
|
|
* GStreamer plugins to be used and distributed together with GStreamer
|
|
* and Noise. This permission is above and beyond the permissions granted
|
|
* by the GPL license by which Noise is covered. If you modify this code
|
|
* you may extend this exception to your version of the code, but you are not
|
|
* obligated to do so. If you do not wish to do so, delete this exception
|
|
* statement from your version.
|
|
*
|
|
* Authored by: Artem Anufrij <artem.anufrij@live.de>
|
|
*/
|
|
|
|
namespace Webpin {
|
|
public class Settings : Granite.Services.Settings {
|
|
|
|
private static Settings settings;
|
|
public static Settings get_default () {
|
|
if (settings == null) {
|
|
settings = new Settings ();
|
|
}
|
|
return settings;
|
|
}
|
|
public int window_width { get; set; }
|
|
public int window_height { get; set; }
|
|
public WindowState window_state { get; set; }
|
|
public bool use_dark_theme { get; set; }
|
|
|
|
private Settings () {
|
|
base ("com.github.artemanufrij.webpin");
|
|
}
|
|
|
|
public enum WindowState {
|
|
NORMAL,
|
|
MAXIMIZED,
|
|
FULLSCREEN
|
|
}
|
|
}
|
|
}
|