import QtQuick import QtQuick.Layouts import "../../components" import "../../services" ColumnLayout { id:root spacing:2 SettingNote {text:GlassService.state.available ? "Global glass controls apply to the shell and other translucent applications. Explicit app/preset rules keep priority. Changes apply when you press Apply at the top of this page." : "HyprGlass is not available. Install a version matching your compositor to use these controls."} SettingRow { title:"Liquid glass preset" description:"Ghostty-like refraction with lighter shell surfaces" icon:"󰂵" GlassButton { objectName:"glassMatchGhostty" text:"Match Ghostty’s liquid glass" onClicked:{ const values={blur_strength:0.45,blur_iterations:2,refraction_strength:3,chromatic_aberration:0.45,fresnel_strength:0.5,specular_strength:0.8,edge_thickness:0.065,lens_distortion:0.25,brightness:0.95,contrast:1,saturation:1,vibrancy:0.15,adaptive_dim:0.2}; ConfigService.setValue("hyprglass.values",values); ConfigService.setValue("appearance.glassOpacity",0.3);ConfigService.setValue("appearance.panelOpacity",0.3); } } } PreferenceToggle {label:"Enable global glass";setting:"hyprglass.effectEnabled"} PreferenceToggle {label:"Glass on shell/layers";setting:"hyprglass.layers"} Repeater { model:[{key:"blur_strength",label:"Blur",max:5},{key:"blur_iterations",label:"Blur passes",min:1,max:5,step:1},{key:"refraction_strength",label:"Refraction",max:8},{key:"chromatic_aberration",label:"Spectral highlights",max:1},{key:"fresnel_strength",label:"Edge glow",max:1},{key:"specular_strength",label:"Specular highlights",max:1},{key:"edge_thickness",label:"Rim thickness",max:0.15,step:0.005},{key:"lens_distortion",label:"Lens distortion",max:1},{key:"brightness",label:"Brightness",min:0.2,max:2},{key:"contrast",label:"Contrast",min:0.2,max:2},{key:"saturation",label:"Saturation",max:2},{key:"vibrancy",label:"Vibrancy",max:1},{key:"adaptive_dim",label:"Adaptive dimming",max:1}] PreferenceSlider {required property var modelData;label:modelData.label;setting:"hyprglass.values."+modelData.key;from:modelData.min || 0;to:modelData.max;step:modelData.step || 0.01} } SettingNote {visible:!!GlassService.state.namespaces || !!GlassService.state.exclusions || !!GlassService.state.overrides;text:"Existing layer allow/exclude lists or preset overrides are active. Those compositor rules remain authoritative."} }