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
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2008-2009 Mj Mendoza IV
6Copyright (C) 2012-2020 Matthew Chiawen Chang
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; version 2 of the License.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17*/
18#ifndef APPEARANCE_H
19#define APPEARANCE_H
20
21#include <QIcon>
22
23struct 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
Generated on Thu Jun 5 2025 14:06:43 for Pencil2D by doxygen 1.9.6 based on revision 4c63407997b2c03e5048716586dec6fbbb755173