removed brightness slider

main
alex 2023-07-16 09:47:32 +00:00
parent 3a8c8369ba
commit 1efadd4581
3 changed files with 2 additions and 69 deletions

View File

@ -13,9 +13,7 @@
"device": { "device": {
"light": { "light": {
"pickerColorModeText": "Farbauswahl", "pickerColorModeText": "Farbauswahl",
"pickerColorModePlaceholder": "Wählen Sie einen Farbmodus", "pickerColorModePlaceholder": "Wählen Sie einen Farbmodus"
"minimumBrightnessText": "Minimale Helligkeit",
"maximumBrightnessText": "Maximale Helligkeit"
}, },
"settings": { "settings": {
"settingsTitle": "Einstellungen", "settingsTitle": "Einstellungen",

View File

@ -13,9 +13,7 @@
"device": { "device": {
"light": { "light": {
"pickerColorModeText": "Color selection", "pickerColorModeText": "Color selection",
"pickerColorModePlaceholder": "Select a color mode", "pickerColorModePlaceholder": "Select a color mode"
"minimumBrightnessText": "Minimum brightness",
"maximumBrightnessText": "Maximum brightness"
}, },
"settings": { "settings": {
"settingsTitle": "Settings", "settingsTitle": "Settings",

View File

@ -375,69 +375,6 @@ export default function LightView() {
onValueChange={(e) => setSwitchState(e)} onValueChange={(e) => setSwitchState(e)}
/> />
</View> </View>
<View style={{ flexDirection: "row", justifyContent: "space-between" }}>
<Text
style={[
AppStyles.typography14,
{ color: appContext.appTheme.text },
]}
>
{t("screens.device.light.minimumBrightnessText")}
</Text>
<Text
style={[
AppStyles.typography14,
{ color: appContext.appTheme.text },
]}
>
{sliderMinimumBrightness} %
</Text>
</View>
<View style={{ flexDirection: "row", justifyContent: "space-between" }}>
<Text
style={[
AppStyles.typography14,
{ color: appContext.appTheme.text },
]}
>
{t("screens.device.light.maximumBrightnessText")}
</Text>
<Text
style={[
AppStyles.typography14,
{ color: appContext.appTheme.text },
]}
>
{sliderMaximumBrightness} %
</Text>
</View>
<View
style={{
flexDirection: "row",
justifyContent: "space-around",
marginTop: 10,
}}
>
<View style={{ width: "60%" }}>
<MySlider
minimumValue={50}
maximumValue={0}
inverted
value={sliderMinimumBrightness}
onValueChange={(v) => setSliderMinimumBrightness(Math.round(v))}
/>
</View>
<View style={{ width: "60%", right: 1 }}>
<MySlider
minimumValue={51}
maximumValue={100}
value={sliderMaximumBrightness}
onValueChange={(v) => setSliderMaximumBrightness(Math.round(v))}
/>
</View>
</View>
</Card> </Card>
</> </>
); );