swad-core/swad_theme.h

63 lines
2.4 KiB
C
Raw Normal View History

2014-12-01 23:55:08 +01:00
// swad_theme.h: themes (colour layouts)
#ifndef _SWAD_THE
#define _SWAD_THE
/*
SWAD (Shared Workspace At a Distance in Spanish),
is a web platform developed at the University of Granada (Spain),
and used to support university teaching.
This file is part of SWAD core.
2019-01-07 21:52:19 +01:00
Copyright (C) 1999-2019 Antonio Ca<EFBFBD>as Vargas
2014-12-01 23:55:08 +01:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*****************************************************************************/
/********************************* Headers ***********************************/
/*****************************************************************************/
/*****************************************************************************/
/***************************** Public constants ******************************/
/*****************************************************************************/
2019-02-20 17:18:13 +01:00
#define The_NUM_THEMES 6
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/******************************* Public types ********************************/
/*****************************************************************************/
typedef enum
{
The_THEME_WHITE = 0,
The_THEME_GREY = 1,
2019-02-20 17:18:13 +01:00
The_THEME_PURPLE = 2,
The_THEME_BLUE = 3,
The_THEME_YELLOW = 4,
The_THEME_PINK = 5,
The_THEME_UNKNOWN = 6,
2014-12-01 23:55:08 +01:00
} The_Theme_t;
2019-02-27 02:31:31 +01:00
#define The_THEME_DEFAULT The_THEME_PINK
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
// void The_PutIconToChangeToNextTheme (void);
void The_PutIconsToSelectTheme (void);
void The_ChangeTheme (void);
The_Theme_t The_GetParamTheme (void);
The_Theme_t The_GetThemeFromStr (const char *Str);
#endif