|
@@ -541,9 +541,9 @@ void laui_DefaultMenuExtras(laUiList *uil, laPropPack *pp, laPropPack *actinst,
|
|
}
|
|
}
|
|
|
|
|
|
void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actinst, laColumn *extracol, int context){
|
|
void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actinst, laColumn *extracol, int context){
|
|
- laUiList *muil;
|
|
|
|
- laColumn *c,*mc;
|
|
|
|
- laUiItem* bb;
|
|
|
|
|
|
+ laUiList *muil,*backuil;
|
|
|
|
+ laColumn *c,*mc,*backc;
|
|
|
|
+ laUiItem* bb,*mbb;
|
|
|
|
|
|
c = laFirstColumn(uil);
|
|
c = laFirstColumn(uil);
|
|
laUiItem* row=laBeginRow(uil,c,0,0);
|
|
laUiItem* row=laBeginRow(uil,c,0,0);
|
|
@@ -555,10 +555,19 @@ void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actins
|
|
}laElse(uil,bb);{
|
|
}laElse(uil,bb);{
|
|
laShowItem(uil, c, 0, "LA_new_panel")->Flags=LA_UI_FLAGS_ICON;
|
|
laShowItem(uil, c, 0, "LA_new_panel")->Flags=LA_UI_FLAGS_ICON;
|
|
|
|
|
|
|
|
+#ifdef LAGUI_ANDROID
|
|
|
|
+ backc=c; backuil=uil;
|
|
|
|
+ uil=laMakeMenuPageEx(uil,c,"Menu",/*LA_UI_FLAGS_NO_CONFIRM*/0); c=laFirstColumn(uil);
|
|
|
|
+ mbb=laBeginRow(uil,c,0,0);
|
|
|
|
+#endif
|
|
|
|
+
|
|
if(MAIN.MenuButtons){ MAIN.MenuButtons(uil,0,0,0,0); }
|
|
if(MAIN.MenuButtons){ MAIN.MenuButtons(uil,0,0,0,0); }
|
|
|
|
|
|
|
|
+#ifdef LAGUI_ANDROID
|
|
|
|
+ laEndRow(uil,mbb); mbb=laBeginRow(uil,c,0,0);
|
|
|
|
+#else
|
|
laShowSeparator(uil,c);
|
|
laShowSeparator(uil,c);
|
|
-
|
|
|
|
|
|
+#endif
|
|
laUiItem* mui=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.maximized_ui"));{
|
|
laUiItem* mui=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.maximized_ui"));{
|
|
laShowItemFull(uil,c,0,"LA_canvas_ui_maximize", 0, "icon=🡰;restore=true;text=Restore Layout", 0, 0);
|
|
laShowItemFull(uil,c,0,"LA_canvas_ui_maximize", 0, "icon=🡰;restore=true;text=Restore Layout", 0, 0);
|
|
}laElse(uil,mui);{
|
|
}laElse(uil,mui);{
|
|
@@ -574,17 +583,21 @@ void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actins
|
|
}laEndCondition(uil,mui);
|
|
}laEndCondition(uil,mui);
|
|
|
|
|
|
laUiItem* uc=laOnConditionThat(uil,c,laPropExpression(0,"la.user_preferences.enable_color_management"));{
|
|
laUiItem* uc=laOnConditionThat(uil,c,laPropExpression(0,"la.user_preferences.enable_color_management"));{
|
|
|
|
+#ifdef LAGUI_ANDROID
|
|
|
|
+ laEndRow(uil,mbb); mbb=laBeginRow(uil,c,0,0);
|
|
|
|
+#else
|
|
laShowSeparator(uil,c);
|
|
laShowSeparator(uil,c);
|
|
- laShowItemFull(uil,c,0,"la.user_preferences.auto_switch_color_space",0,"icon=A",0,0)->Flags|=LA_UI_FLAGS_ICON|LA_UI_FLAGS_CYCLE|LA_UI_FLAGS_HIGHLIGHT;
|
|
|
|
|
|
+#endif
|
|
|
|
+ laShowItemFull(uil,c,0,"la.user_preferences.auto_switch_color_space",0,"icon=A",0,0)->Flags|=LA_UI_FLAGS_ICON|LA_UI_FLAGS_CYCLE|LA_UI_FLAGS_HIGHLIGHT|LA_UI_FLAGS_NO_CONFIRM;
|
|
laUiItem* uc1=laOnConditionThat(uil,c,laPropExpression(0,"la.user_preferences.auto_switch_color_space"));{
|
|
laUiItem* uc1=laOnConditionThat(uil,c,laPropExpression(0,"la.user_preferences.auto_switch_color_space"));{
|
|
laShowItem(uil,c,0,"la.windows.output_color_space")->Flags|=LA_UI_FLAGS_PLAIN;
|
|
laShowItem(uil,c,0,"la.windows.output_color_space")->Flags|=LA_UI_FLAGS_PLAIN;
|
|
}laElse(uil,uc1);{
|
|
}laElse(uil,uc1);{
|
|
laShowItem(uil,c,0,"la.windows.output_color_space");
|
|
laShowItem(uil,c,0,"la.windows.output_color_space");
|
|
}laEndCondition(uil, uc1);
|
|
}laEndCondition(uil, uc1);
|
|
- laShowItemFull(uil,c,0,"la.windows.output_show_overflow",0,"text=🟩;",0,0);
|
|
|
|
- laShowItemFull(uil,c,0,"la.windows.use_composing",0,"text=☀",0,0);
|
|
|
|
|
|
+ laShowItemFull(uil,c,0,"la.windows.output_show_overflow",0,"text=🟩;",0,0)->Flags|=LA_UI_FLAGS_NO_CONFIRM;
|
|
|
|
+ laShowItemFull(uil,c,0,"la.windows.use_composing",0,"text=☀",0,0)->Flags|=LA_UI_FLAGS_NO_CONFIRM;
|
|
laUiItem* cmp=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.use_composing"));{
|
|
laUiItem* cmp=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.use_composing"));{
|
|
- muil = laMakeMenuPage(uil, c, "⯆");{ mc = laFirstColumn(muil);
|
|
|
|
|
|
+ muil = laMakeMenuPageEx(uil, c, "⯆",LA_UI_FLAGS_NO_CONFIRM);{ mc = laFirstColumn(muil);
|
|
laUiItem*b,*ui;
|
|
laUiItem*b,*ui;
|
|
b=laBeginRow(muil,mc,0,0); laShowLabel(muil,mc,"γ",0,0);
|
|
b=laBeginRow(muil,mc,0,0); laShowLabel(muil,mc,"γ",0,0);
|
|
ui=laShowItemFull(muil, mc, 0, "la.windows.composing_gamma",0,"text=Gamma",0,0); ui->Expand=1;
|
|
ui=laShowItemFull(muil, mc, 0, "la.windows.composing_gamma",0,"text=Gamma",0,0); ui->Expand=1;
|
|
@@ -594,8 +607,14 @@ void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actins
|
|
laShowItem(muil,mc,&ui->PP,"restore")->Flags|=LA_UI_FLAGS_NO_CONFIRM|LA_UI_FLAGS_ICON; laEndRow(muil,b);
|
|
laShowItem(muil,mc,&ui->PP,"restore")->Flags|=LA_UI_FLAGS_NO_CONFIRM|LA_UI_FLAGS_ICON; laEndRow(muil,b);
|
|
}
|
|
}
|
|
}laEndCondition(uil, cmp);
|
|
}laEndCondition(uil, cmp);
|
|
|
|
+
|
|
}laEndCondition(uil, uc);
|
|
}laEndCondition(uil, uc);
|
|
|
|
|
|
|
|
+#ifdef LAGUI_ANDROID
|
|
|
|
+ laEndRow(uil,mbb);
|
|
|
|
+ c=backc; uil=backuil;
|
|
|
|
+#endif
|
|
|
|
+
|
|
if(MAIN.MenuExtras){ laShowSeparator(uil,c); MAIN.MenuExtras(uil,0,0,0,0); }
|
|
if(MAIN.MenuExtras){ laShowSeparator(uil,c); MAIN.MenuExtras(uil,0,0,0,0); }
|
|
|
|
|
|
laUiItem* b1=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.panels_hidden"));
|
|
laUiItem* b1=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.panels_hidden"));
|
|
@@ -605,11 +624,14 @@ void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actins
|
|
laShowItemFull(muil, mc, 0, "la.windows.panels_hidden", 0,0, laui_IdentifierOnly,0);
|
|
laShowItemFull(muil, mc, 0, "la.windows.panels_hidden", 0,0, laui_IdentifierOnly,0);
|
|
}
|
|
}
|
|
laEndCondition(uil, b1);
|
|
laEndCondition(uil, b1);
|
|
|
|
+
|
|
|
|
+#ifndef LAGUI_ANDROID
|
|
b1=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.is_fullscreen"));{
|
|
b1=laOnConditionThat(uil,c,laPropExpression(0,"la.windows.is_fullscreen"));{
|
|
laShowItemFull(uil,c,0,"LA_fullscreen",0,"restore=true;text=Restore;icon=🡷",0,0)->Flags|=LA_UI_FLAGS_EXIT_WHEN_TRIGGERED;
|
|
laShowItemFull(uil,c,0,"LA_fullscreen",0,"restore=true;text=Restore;icon=🡷",0,0)->Flags|=LA_UI_FLAGS_EXIT_WHEN_TRIGGERED;
|
|
}laElse(uil,b1);{
|
|
}laElse(uil,b1);{
|
|
laShowItemFull(uil,c,0,"LA_fullscreen",0,0,0,0)->Flags|=LA_UI_FLAGS_EXIT_WHEN_TRIGGERED;
|
|
laShowItemFull(uil,c,0,"LA_fullscreen",0,0,0,0)->Flags|=LA_UI_FLAGS_EXIT_WHEN_TRIGGERED;
|
|
}laEndCondition(uil, b1);
|
|
}laEndCondition(uil, b1);
|
|
|
|
+#endif
|
|
|
|
|
|
}laEndCondition(uil,bb);
|
|
}laEndCondition(uil,bb);
|
|
|
|
|