WIP shutter speed priority screen

This commit is contained in:
Daniele Verducci 2024-03-28 08:58:10 +01:00
parent ef006ae99b
commit e638c2b5a1
3 changed files with 95 additions and 9 deletions

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><g fill="#222222"><path d="m 7.996094 0 c -2.835938 0 -5.292969 2 -5.871094 4.777344 c -0.527344 2.535156 0.6875 5.035156 2.871094 6.324218 l 0.003906 0.898438 c 0 0.554688 0.449219 1 1 1 h 4 c 0.550781 0 1 -0.445312 1 -1 v -0.898438 c 2.183594 -1.292968 3.402344 -3.796874 2.871094 -6.332031 c -0.582032 -2.773437 -3.039063 -4.769531 -5.875 -4.769531 z m 0 2 c 1.898437 0 3.527344 1.320312 3.917968 3.179688 c 0.386719 1.863281 -0.574218 3.726562 -2.3125 4.484374 c -0.363281 0.160157 -0.597656 0.519532 -0.601562 0.914063 v 0.421875 h -2.003906 v -0.417969 c 0 -0.398437 -0.234375 -0.753906 -0.597656 -0.914062 c -1.742188 -0.761719 -2.703126 -2.625 -2.316407 -4.484375 s 2.011719 -3.183594 3.914063 -3.183594 z m 0 0"/><path d="m 6 15 c 0 0.554688 0.445312 1 1 1 h 2 c 0.554688 0 1 -0.445312 1 -1 v -1 h -4 z m 0 0"/><path d="m 6.644531 6.144531 c -0.195312 0.195313 -0.195312 0.515625 0 0.707031 l 1 1 c 0.195313 0.195313 0.511719 0.195313 0.707031 0 l 1 -1 c 0.195313 -0.191406 0.195313 -0.511718 0 -0.707031 c -0.195312 -0.191406 -0.511718 -0.191406 -0.707031 0 l -0.648437 0.648438 l -0.644532 -0.648438 c -0.195312 -0.191406 -0.511718 -0.191406 -0.707031 0 z m 0 0" fill-opacity="0.5"/></g></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -6,6 +6,7 @@
<file preprocess="xml-stripblanks">icons/scalable/status/encoder-knob-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/scalable/status/camera-timer-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/scalable/status/camera-shutter-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/scalable/status/lightbulb-symbolic.svg</file>
</gresource>
</gresources>

View File

@ -3,8 +3,8 @@
<requires lib="gtk" version="4.0"/>
<requires lib="Adw" version="1.0"/>
<template class="LumosWindow" parent="AdwApplicationWindow">
<property name="default-width">480</property>
<property name="default-height">800</property>
<property name="default-width">360</property>
<property name="default-height">640</property>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
@ -36,7 +36,7 @@
<property name="use-underline">true</property>
<property name="child">
<object class="GtkLabel" id="aperture-label">
<property name="label">Aperture priority mode!</property>
<property name="label" translatable="yes">Aperture priority mode!</property>
<style>
<class name="title-1"/>
</style>
@ -53,11 +53,60 @@
<property name="icon-name">camera-timer-symbolic</property>
<property name="use-underline">true</property>
<property name="child">
<object class="GtkLabel" id="time-label">
<property name="label">Time priority mode!</property>
<style>
<class name="title-1"/>
</style>
<object class="GtkBox">
<property name="orientation">1</property>
<property name="valign">3</property>
<property name="halign">3</property>
<child>
<object class="GtkImage">
<property name="icon-name">camera-timer-symbolic</property>
<property name="pixel-size">64</property>
<property name="margin-bottom">30</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Time priority</property>
<style>
<class name="title-1"/>
</style>
<property name="margin-bottom">30</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Set this aperture value:</property>
<property name="margin-bottom">15</property>
</object>
</child>
<child>
<object class="GtkLabel" id="time-priority-aperture-label">
<property name="label" translatable="no">f/11</property>
<style>
<class name="title-1"/>
</style>
<property name="margin-bottom">30</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Your camera's time setting is:</property>
<property name="margin-bottom">15</property>
</object>
</child>
<child>
<object class="GtkDropDown" id="time-priority-speed-dropdown">
<property name="model">
<object class="GtkStringList">
<items>
<item translatable="yes">1/60</item>
<item translatable="yes">1/125</item>
<item translatable="yes">1/250</item>
</items>
</object>
</property>
</object>
</child>
</object>
</property>
</object>
@ -72,7 +121,7 @@
<property name="use-underline">true</property>
<property name="child">
<object class="GtkLabel" id="manual-label">
<property name="label">Manual mode!</property>
<property name="label" translatable="yes">Manual mode!</property>
<style>
<class name="title-1"/>
</style>
@ -81,6 +130,40 @@
</object>
</child>
<!-- Light page -->
<child>
<object class="AdwViewStackPage" id="light-measure-page">
<property name="name">light-measure-page</property>
<property name="title" translatable="true">Light</property>
<property name="icon-name">lightbulb-symbolic</property>
<property name="use-underline">true</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">1</property>
<property name="valign">3</property>
<property name="halign">3</property>
<child>
<object class="GtkImage" id="lux-icon">
<property name="icon-name">lightbulb-symbolic</property>
<property name="pixel-size">128</property>
<property name="margin-bottom">30</property>
</object>
</child>
<child>
<object class="GtkLabel" id="lux-label">
<property name="label" translatable="no">XXX Lux</property>
<style>
<class name="title-1"/>
</style>
</object>
</child>
</object>
</property>
</object>
</child>
</object>
</child>