Pencil2D Animation
Download
Community
News
Docs
Contribute
Overview
Articles
Code
Class List
Class Index
Class Hierarchy
Class Members
File List
Loading...
Searching...
No Matches
app
src
appearance.h
1
/*
2
3
Pencil2D - Traditional Animation Software
4
Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5
Copyright (C) 2008-2009 Mj Mendoza IV
6
Copyright (C) 2012-2020 Matthew Chiawen Chang
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
as published by the Free Software Foundation; version 2 of the License.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
*/
18
#ifndef APPEARANCE_H
19
#define APPEARANCE_H
20
21
#include <QIcon>
22
23
struct
IconResource
24
{
25
QIcon
lightMode;
26
QIcon
darkMode;
27
28
const
QIcon
& iconForMode(
bool
darkmodeEnabled)
const
29
{
30
if
(darkmodeEnabled) {
31
return
darkMode;
32
}
else
{
33
return
lightMode;
34
}
35
}
36
};
37
38
#endif
// APPEARANCE_H
QIcon
IconResource
Definition:
appearance.h:24