@@ -1088,6 +1088,12 @@ namespace settings {
10881088 tr (" settings.schema.notifications.daemon.description" ),
10891089 {" notification" , " enable_daemon" }, ToggleSetting{cfg.notification .enableDaemon },
10901090 " dbus" ));
1091+ entries.push_back (makeEntry (
1092+ " notifications" , " toasts" , tr (" settings.schema.notifications.layer.label" ),
1093+ tr (" settings.schema.notifications.layer.description" ), {" notification" , " layer" },
1094+ asSegmented (plainSelect ({{" top" , " settings.options.layer.top" }, {" overlay" , " settings.options.layer.overlay" }},
1095+ cfg.notification .layer )),
1096+ " toast layer shell z-order" ));
10911097 entries.push_back (makeEntry (" notifications" , " toasts" , tr (" settings.schema.notifications.position.label" ),
10921098 tr (" settings.schema.notifications.position.description" ), {" notification" , " position" },
10931099 plainSelect ({{" top_right" , " settings.options.screen-position.top-right" },
@@ -1099,11 +1105,17 @@ namespace settings {
10991105 cfg.notification .position ),
11001106 " toast popup placement anchor" ));
11011107 entries.push_back (makeEntry (
1102- " notifications" , " toasts" , tr (" settings.schema.notifications.layer.label" ),
1103- tr (" settings.schema.notifications.layer.description" ), {" notification" , " layer" },
1104- asSegmented (plainSelect ({{" top" , " settings.options.layer.top" }, {" overlay" , " settings.options.layer.overlay" }},
1105- cfg.notification .layer )),
1106- " toast layer shell z-order" ));
1108+ " notifications" , " toasts" , tr (" settings.schema.notifications.offset-x.label" ),
1109+ tr (" settings.schema.notifications.offset-x.description" ), {" notification" , " offset_x" },
1110+ StepperSetting{
1111+ .value = cfg.notification .offsetX , .minValue = 0 , .maxValue = 200 , .step = 1 , .valueSuffix = " px" },
1112+ " offset margin horizontal" ));
1113+ entries.push_back (makeEntry (
1114+ " notifications" , " toasts" , tr (" settings.schema.notifications.offset-y.label" ),
1115+ tr (" settings.schema.notifications.offset-y.description" ), {" notification" , " offset_y" },
1116+ StepperSetting{
1117+ .value = cfg.notification .offsetY , .minValue = 0 , .maxValue = 200 , .step = 1 , .valueSuffix = " px" },
1118+ " offset margin vertical" ));
11071119 entries.push_back (makeEntry (" notifications" , " toasts" , tr (" settings.schema.notifications.toast-opacity.label" ),
11081120 tr (" settings.schema.notifications.toast-opacity.description" ),
11091121 {" notification" , " background_opacity" },
0 commit comments