@@ -666,6 +666,7 @@ namespace settings {
666666 {" gauge" , " settings.widgets.options.gauge" },
667667 {" graph" , " settings.widgets.options.graph" },
668668 {" text" , " settings.widgets.options.text" },
669+ {" none" , " settings.widgets.options.none" },
669670 };
670671 const std::vector<WidgetSettingSelectOption> networkSpeedUnits = {
671672 {" auto" , " settings.widgets.options.auto" },
@@ -917,11 +918,20 @@ namespace settings {
917918 }
918919 add (segmentedSpec (" display" , " gauge" , sysmonDisplay));
919920 add (colorSpec (" highlight_color" , " error" ));
920- add (boolSpec (" show_label" , true ));
921921 {
922- auto minW = intSpec (" label_min_width" , 0 , 0.0 , 200.0 , 1.0 );
923- minW.visibleWhen = WidgetSettingVisibility{" show_label" , {" true" }};
924- add (std::move (minW));
922+ auto showLabel = boolSpec (" show_label" , true );
923+ showLabel.visibleWhen = WidgetSettingVisibility{" display" , {" gauge" , " graph" , " text" }};
924+ add (std::move (showLabel));
925+ }
926+ {
927+ auto minWidth = intSpec (" label_min_width" , 0 , 0.0 , 200.0 , 1.0 );
928+ WidgetSettingVisibility minWidthSettings;
929+ minWidthSettings.all = {
930+ WidgetSettingVisibilityCondition{" display" , {" gauge" , " graph" , " text" }},
931+ WidgetSettingVisibilityCondition{" show_label" , {" true" }},
932+ };
933+ minWidth.visibleWhen = minWidthSettings;
934+ add (std::move (minWidth));
925935 }
926936 } else if (type == " power_profile" ) {
927937 add (boolSpec (" enable_scroll" , true ));
0 commit comments