Version 21.70.7: Dec 20, 2021 Working on design of dark theme.

This commit is contained in:
acanas 2021-12-20 09:44:31 +01:00
parent 1512f002cb
commit e67400fb4f
4 changed files with 25 additions and 5 deletions

View File

@ -1879,10 +1879,16 @@ a:hover img.CENTER_PHOTO_SHOW
background-size:20px 20px; background-size:20px 20px;
background-repeat:no-repeat; background-repeat:no-repeat;
font-size:12pt; font-size:12pt;
color:#632921;
text-align:left; text-align:left;
overflow:hidden; overflow:hidden;
} }
.ALERT_TXT_WHITE {color:#632921;}
.ALERT_TXT_GREY {color:#632921;}
.ALERT_TXT_PURPLE {color:#632921;}
.ALERT_TXT_BLUE {color:#632921;}
.ALERT_TXT_YELLOW {color:#632921;}
.ALERT_TXT_PINK {color:#632921;}
.ALERT_TXT_DARK {color:white;}
/*********************************** Icons ***********************************/ /*********************************** Icons ***********************************/
.ICOx16 { height:16px; vertical-align:middle;} .ICOx16 { height:16px; vertical-align:middle;}

View File

@ -360,6 +360,7 @@ void Ale_ShowAlertAndButton1 (Ale_AlertType_t AlertType,const char *fmt,...)
static void Ale_ShowFixAlertAndButton1 (Ale_AlertType_t AlertType,const char *Txt) static void Ale_ShowFixAlertAndButton1 (Ale_AlertType_t AlertType,const char *Txt)
{ {
extern const char *The_ClassAlertBackground[The_NUM_THEMES]; extern const char *The_ClassAlertBackground[The_NUM_THEMES];
extern const char *The_ClassAlertTxtColor[The_NUM_THEMES];
extern const char *Txt_Close; extern const char *Txt_Close;
char IdAlert[Frm_MAX_BYTES_ID + 1]; char IdAlert[Frm_MAX_BYTES_ID + 1];
static const bool AlertClosable[Ale_NUM_ALERT_TYPES] = static const bool AlertClosable[Ale_NUM_ALERT_TYPES] =
@ -414,9 +415,11 @@ static void Ale_ShowFixAlertAndButton1 (Ale_AlertType_t AlertType,const char *Tx
/***** Write message *****/ /***** Write message *****/
if (AlertType == Ale_NONE) if (AlertType == Ale_NONE)
HTM_DIV_Begin ("class=\"ALERT_TXT\""); HTM_DIV_Begin ("class=\"ALERT_TXT %s\"",
The_ClassAlertTxtColor[Gbl.Prefs.Theme]);
else else
HTM_DIV_Begin ("class=\"ALERT_TXT\" style=\"background-image:url('%s/%s');\"", HTM_DIV_Begin ("class=\"ALERT_TXT %s\" style=\"background-image:url('%s/%s');\"",
The_ClassAlertTxtColor[Gbl.Prefs.Theme],
Cfg_URL_ICON_PUBLIC,Ale_AlertIcons[AlertType]); Cfg_URL_ICON_PUBLIC,Ale_AlertIcons[AlertType]);
HTM_Txt (Txt); HTM_Txt (Txt);
HTM_DIV_End (); HTM_DIV_End ();

View File

@ -602,12 +602,13 @@ 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. TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
*/ */
#define Log_PLATFORM_VERSION "SWAD 21.70.6 (2021-12-20)" #define Log_PLATFORM_VERSION "SWAD 21.70.7 (2021-12-20)"
#define CSS_FILE "swad21.70.1.css" #define CSS_FILE "swad21.70.7.css"
#define JS_FILE "swad21.67.4.js" #define JS_FILE "swad21.67.4.js"
/* /*
// TODO: al ver los resultados de un juego como profesor, el rol del estudiante sale como desconocido y no se puede ver el DNI // TODO: al ver los resultados de un juego como profesor, el rol del estudiante sale como desconocido y no se puede ver el DNI
Version 21.70.7: Dec 20, 2021 Working on design of dark theme. (321926 lines)
Version 21.70.6: Dec 20, 2021 Working on design of dark theme. (321886 lines) Version 21.70.6: Dec 20, 2021 Working on design of dark theme. (321886 lines)
Version 21.70.5: Dec 19, 2021 Working on design of dark theme. (321748 lines) Version 21.70.5: Dec 19, 2021 Working on design of dark theme. (321748 lines)
Version 21.70.4: Dec 18, 2021 Working on design of dark theme. (321634 lines) Version 21.70.4: Dec 18, 2021 Working on design of dark theme. (321634 lines)

View File

@ -403,6 +403,16 @@ const char *The_ClassAlertBackground[The_NUM_THEMES] =
[The_THEME_PINK ] = "ALERT_BG_PINK", [The_THEME_PINK ] = "ALERT_BG_PINK",
[The_THEME_DARK ] = "ALERT_BG_DARK", [The_THEME_DARK ] = "ALERT_BG_DARK",
}; };
const char *The_ClassAlertTxtColor[The_NUM_THEMES] =
{
[The_THEME_WHITE ] = "ALERT_TXT_WHITE",
[The_THEME_GREY ] = "ALERT_TXT_GREY",
[The_THEME_PURPLE] = "ALERT_TXT_PURPLE",
[The_THEME_BLUE ] = "ALERT_TXT_BLUE",
[The_THEME_YELLOW] = "ALERT_TXT_YELLOW",
[The_THEME_PINK ] = "ALERT_TXT_PINK",
[The_THEME_DARK ] = "ALERT_TXT_DARK",
};
/*****************************************************************************/ /*****************************************************************************/
/****************************** Private prototypes ***************************/ /****************************** Private prototypes ***************************/