|
@@ -1024,6 +1024,7 @@ void la_LabelDraw(laUiItem *ui, int h){
|
|
|
laBoxedTheme *bt = (*ui->Type->Theme);
|
|
|
int IsDisabled=ui->Flags&LA_UI_FLAGS_DISABLED;
|
|
|
int IsHighlight=ui->Flags&LA_UI_FLAGS_HIGHLIGHT;
|
|
|
+ int IsWarning=ui->Flags&LA_UI_FLAGS_WARNING;
|
|
|
|
|
|
if (!ui->State) ui->State = LA_UI_NORMAL;
|
|
|
if (ui->ExtraInstructions && !ui->Instructions){
|
|
@@ -1033,7 +1034,9 @@ void la_LabelDraw(laUiItem *ui, int h){
|
|
|
//int State = ui->Instructions ? (strArgumentMatch(ui->Instructions, "disabled", "true") ? LA_THEME_DISABLED : LA_UI_NORMAL) : LA_UI_NORMAL;
|
|
|
|
|
|
tnsDrawStringAuto(transLate(SSTR(ui->Display)),
|
|
|
- IsDisabled?laThemeColor(bt,LA_BT_TEXT|LA_UI_DISABLED):(IsHighlight?laAccentColor(LA_BT_TEXT):laThemeColor(bt,LA_BT_TEXT)),
|
|
|
+ IsDisabled?laThemeColor(bt,LA_BT_TEXT|LA_UI_DISABLED):
|
|
|
+ (IsHighlight?laAccentColor(LA_BT_TEXT):
|
|
|
+ (IsWarning?laAccentColor(LA_BT_WARNING):laThemeColor(bt,LA_BT_TEXT))),
|
|
|
ui->L, ui->R, ui->U, ui->Flags);
|
|
|
}
|
|
|
void la_SingleLineStringDrawSelection(laUiItem *ui, int Begin, int U, laBoxedTheme *bt, uint32_t *str, laStringEdit *se){
|