forked from Linoxide/linspeed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.cpp
More file actions
40 lines (35 loc) · 1.59 KB
/
theme.cpp
File metadata and controls
40 lines (35 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Copyright (C) 2014 Linoxide <linoxide@gmail.com>
* Copyright (C) 2014 Michał Łuszczyk <michal.luszczyk@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "theme.h"
Theme::Theme(const QString& _name, int _size, const QString &_filenamePrefix)
: name(_name), size(_size), filenamePrefix(_filenamePrefix) {}
Theme::Theme(const Theme& theme)
: name(theme.name), size(theme.size), filenamePrefix(theme.filenamePrefix) {}
QList<Theme> Theme::listThemes()
{
QList<Theme> list;
list.append(Theme("Native Large", Large, "nativelarge"));
list.append(Theme("Native Small", Small, "nativesmall"));
list.append(Theme("Striped Large", Large, "stripedlarge"));
list.append(Theme("Bordeaux Large", Large, "bordeauxlarge"));
list.append(Theme("Bordeaux Small", Small, "bordeauxsmall"));
list.append(Theme("Chartreuse Large", Large, "chartreuselarge"));
list.append(Theme("Chartreuse Small", Small, "chartreusesmall"));
return list;
}