// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial import { DemoPalette, Page, SpinBox, ComboBox, CheckBox, Label } from "common.slint"; export SettingsPage := Page { header: "Settings"; GridLayout { padding-top: 23px /* header line height in design */ + /* extra top-padding in design */ 13px; spacing: 5px; Row { Text { text: "Defaults"; color: DemoPalette.secondary-foreground-color; font-size: DemoPalette.base-font-size * 1.125; font-weight: 800; colspan: 2; horizontal-stretch: 2; } Rectangle {} Text { col: 2; colspan: 2; text: "General"; color: DemoPalette.secondary-foreground-color; font-size: DemoPalette.base-font-size * 1.125; font-weight: 800; } } Row { Label { text: "Layout"; } ComboBox { value: "Portrait"; choices: ["Portrait", "Landscape"]; horizontal-stretch: 2; } Rectangle {} Label { text: "EcoMode"; } CheckBox { checked: false; } } Row { Label { text: "Quality"; } ComboBox { value: "Best"; choices: ["Best", "Medium", "Draft"]; horizontal-stretch: 2; } Rectangle {} Label { text: "TURBO "; } CheckBox { checked: true; } } Row { Label { text: "Color"; } ComboBox { value: "Grayscale"; choices: ["Grayscale", "RGB", "YCMB"]; horizontal-stretch: 2; } } Rectangle {} } }