// SPDX-FileCopyrightText: 2024 vivi developers // SPDX-License-Identifier: MIT export struct RangeStyle { // common bar_height: length, border_radius: length, // background_layer background: brush, // track_layer track_background: brush, // handle handle_background: brush, handle_size: length, } export component RangeBase { // styling in property style; // value related properties in_out property value: root.minimum; in_out property minimum; in_out property maximum: 100; out property progress: (root.value - root.minimum) / root.range; out property range: root.maximum - root.minimum; @children }