|
@@ -765,15 +765,14 @@ void la_EnumSelectorDraw(laUiItem *ui, int h){
|
|
|
tnsPackAs(GL_LINE_LOOP);
|
|
|
}
|
|
|
|
|
|
- if(!Highlight){
|
|
|
- if (ui->ExtraInstructions){
|
|
|
- if (ui->Type->OperatorType->ParseArgs){
|
|
|
- int ico; buf[0]=0; ui->Type->OperatorType->ParseArgs(ui->Instructions, &ico, buf);
|
|
|
- }
|
|
|
+
|
|
|
+ if (ui->ExtraInstructions){
|
|
|
+ if (ui->Type->OperatorType->ParseArgs){
|
|
|
+ int ico; buf[0]=0; ui->Type->OperatorType->ParseArgs(ui->Instructions, &ico, buf);
|
|
|
}
|
|
|
- if(!buf[0]) strcpy(buf, transLate(use_ei->Name));
|
|
|
}
|
|
|
- else{ if(ArrLen==1) strcpy(buf, transLate(ui->PP.LastPs->p->Name)); else{ if(i<8)strcat(buf, &prefix[i]); } }
|
|
|
+ if(Highlight){ if(!buf[0] && ArrLen==1) strcpy(buf, transLate(ui->PP.LastPs->p->Name)); else{ if(i<8)strcat(buf, &prefix[i]); } }
|
|
|
+ if(!buf[0]) strcpy(buf, transLate(use_ei->Name));
|
|
|
int iconR; if(IconOnly)iconR=TNS_MAX2(_L+LA_RH,_R);else{ iconR=TNS_MIN2(_L+LA_RH,_R); }
|
|
|
if (use_ei->IconID) tnsDrawIcon(use_ei->IconID, laThemeColor(bt, LA_BT_TEXT|ExtraState), _L,iconR, _U, LA_TEXT_ALIGN_CENTER);
|
|
|
if(!IconOnly){
|
|
@@ -1076,9 +1075,13 @@ void la_ColorCircleDrawHCY(laUiItem *ui, int h){
|
|
|
|
|
|
tnsFlush();
|
|
|
|
|
|
- tnsUniformShowColorOverflowStripes(T->immShader,1);
|
|
|
+ int isClay=ui->Flags&LA_UI_FLAGS_COLOR_SPACE_CLAY;
|
|
|
+
|
|
|
+ if(MAIN.CurrentWindow->OutputColorSpace!=TNS_COLOR_SPACE_SRGB && (!isClay)){
|
|
|
+ tnsUniformShowColorOverflowStripes(T->immShader,1);
|
|
|
+ }
|
|
|
|
|
|
- if(ui->Flags&LA_UI_FLAGS_COLOR_SPACE_CLAY){
|
|
|
+ if(isClay){
|
|
|
tnsUniformInputColorSpace(T->immShader,TNS_COLOR_SPACE_CLAY);
|
|
|
}else{
|
|
|
tnsUniformInputColorSpace(T->immShader,TNS_COLOR_SPACE_SRGB);
|