mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-13 04:04:35 +02:00
Version 21.76.1: Dec 27, 2021 Working on design of dark theme.
This commit is contained in:
parent
1fc695c69a
commit
5186e326d0
|
@ -95,7 +95,7 @@ address
|
|||
/*********************** Text decoration of links ****************************/
|
||||
a
|
||||
{
|
||||
color:#4D88A1;text-decoration:none;
|
||||
color:#4d88a1;text-decoration:none;
|
||||
}
|
||||
a:link, a:visited, a:active
|
||||
{
|
||||
|
|
|
@ -602,10 +602,11 @@ TODO: FIX BUG, URGENT! En las fechas como par
|
|||
|
||||
TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 21.76 (2021-12-27)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 21.76.1 (2021-12-27)"
|
||||
#define CSS_FILE "swad21.76.css"
|
||||
#define JS_FILE "swad21.67.4.js"
|
||||
/*
|
||||
Version 21.76.1: Dec 27, 2021 Working on design of dark theme. (322283 lines)
|
||||
Version 21.76: Dec 27, 2021 Code refactoring related to themes. (322302 lines)
|
||||
Version 21.75.1: Dec 26, 2021 Fixed bug in icons. (322479 lines)
|
||||
Version 21.75: Dec 26, 2021 Code refactoring related to links. (322477 lines)
|
||||
|
|
|
@ -963,6 +963,7 @@ static void Lay_WriteScriptCustomDropzone (void)
|
|||
|
||||
static void Lay_WritePageTopHeading (void)
|
||||
{
|
||||
extern const char *The_Colors[The_NUM_THEMES];
|
||||
extern const char *Txt_TAGLINE;
|
||||
extern const char *Txt_TAGLINE_BR;
|
||||
static const char *ClassHeadRow1[The_NUM_THEMES] =
|
||||
|
@ -985,16 +986,6 @@ static void Lay_WritePageTopHeading (void)
|
|||
[The_THEME_PINK ] = "HEAD_ROW_2_PINK",
|
||||
[The_THEME_DARK ] = "HEAD_ROW_2_DARK",
|
||||
};
|
||||
static const char *ClassTagline[The_NUM_THEMES] =
|
||||
{
|
||||
[The_THEME_WHITE ] = "BT_LINK TAGLINE_WHITE",
|
||||
[The_THEME_GREY ] = "BT_LINK TAGLINE_GREY",
|
||||
[The_THEME_PURPLE] = "BT_LINK TAGLINE_PURPLE",
|
||||
[The_THEME_BLUE ] = "BT_LINK TAGLINE_BLUE",
|
||||
[The_THEME_YELLOW] = "BT_LINK TAGLINE_YELLOW",
|
||||
[The_THEME_PINK ] = "BT_LINK TAGLINE_PINK",
|
||||
[The_THEME_DARK ] = "BT_LINK TAGLINE_DARK",
|
||||
};
|
||||
|
||||
/***** Begin header *****/
|
||||
HTM_Txt ("<header>");
|
||||
|
@ -1020,10 +1011,9 @@ static void Lay_WritePageTopHeading (void)
|
|||
Cfg_PLATFORM_SHORT_NAME,Cfg_PLATFORM_LOGO_BIG_CLASS);
|
||||
HTM_DIV_End (); // head_row_1_logo_big
|
||||
|
||||
HTM_DIV_Begin ("id=\"head_row_1_tagline\"");
|
||||
HTM_BUTTON_OnSubmit_Begin (Txt_TAGLINE,
|
||||
ClassTagline[Gbl.Prefs.Theme],
|
||||
NULL);
|
||||
HTM_DIV_Begin ("id=\"head_row_1_tagline\" class=\"TAGLINE_%s\"",
|
||||
The_Colors[Gbl.Prefs.Theme]);
|
||||
HTM_BUTTON_OnSubmit_Begin (Txt_TAGLINE,"BT_LINK",NULL);
|
||||
HTM_Txt (Txt_TAGLINE_BR);
|
||||
HTM_BUTTON_End ();
|
||||
HTM_DIV_End (); // head_row_1_tagline
|
||||
|
@ -1074,7 +1064,8 @@ static void Lay_WritePageTopHeading (void)
|
|||
HTM_DIV_End ();
|
||||
|
||||
/* 2nd. row, 3rd. column */
|
||||
HTM_DIV_Begin ("id=\"msg\""); // Used for AJAX based refresh
|
||||
HTM_DIV_Begin ("id=\"msg\" class=\"NOTIF_%s\"", // Used for AJAX based refresh
|
||||
The_Colors[Gbl.Prefs.Theme]);
|
||||
if (Gbl.Usrs.Me.Logged)
|
||||
Ntf_WriteNumberOfNewNtfs ();
|
||||
HTM_DIV_End (); // Used for AJAX based refresh
|
||||
|
|
|
@ -1631,16 +1631,6 @@ void Ntf_WriteNumberOfNewNtfs (void)
|
|||
extern const char *Txt_Notifications;
|
||||
extern const char *Txt_NOTIF_new_SINGULAR;
|
||||
extern const char *Txt_NOTIF_new_PLURAL;
|
||||
static const char *ClassNotif[The_NUM_THEMES] =
|
||||
{
|
||||
[The_THEME_WHITE ] = "BT_LINK NOTIF_WHITE",
|
||||
[The_THEME_GREY ] = "BT_LINK NOTIF_GREY",
|
||||
[The_THEME_PURPLE] = "BT_LINK NOTIF_PURPLE",
|
||||
[The_THEME_BLUE ] = "BT_LINK NOTIF_BLUE",
|
||||
[The_THEME_YELLOW] = "BT_LINK NOTIF_YELLOW",
|
||||
[The_THEME_PINK ] = "BT_LINK NOTIF_PINK",
|
||||
[The_THEME_DARK ] = "BT_LINK NOTIF_DARK",
|
||||
};
|
||||
unsigned NumUnseenNtfs;
|
||||
unsigned NumNewNtfs = 0;
|
||||
|
||||
|
@ -1652,8 +1642,7 @@ void Ntf_WriteNumberOfNewNtfs (void)
|
|||
Frm_BeginFormId (ActSeeNewNtf,"form_ntf");
|
||||
|
||||
/***** Begin link *****/
|
||||
HTM_BUTTON_OnSubmit_Begin (Txt_See_notifications,
|
||||
ClassNotif[Gbl.Prefs.Theme],NULL);
|
||||
HTM_BUTTON_OnSubmit_Begin (Txt_See_notifications,"BT_LINK",NULL);
|
||||
|
||||
/***** Number of unseen notifications *****/
|
||||
HTM_SPAN_Begin ("id=\"notif_all\"");
|
||||
|
|
Loading…
Reference in New Issue
Block a user