diff --git a/src/lumos.gresource.xml b/src/lumos.gresource.xml index d9a5a1b..42b0c2b 100644 --- a/src/lumos.gresource.xml +++ b/src/lumos.gresource.xml @@ -3,6 +3,8 @@ window.ui widgets/time_priority_page.ui + widgets/aperture_priority_page.ui gtk/help-overlay.ui + style.css diff --git a/src/meson.build b/src/meson.build index dc08604..6834b1b 100644 --- a/src/meson.build +++ b/src/meson.build @@ -32,6 +32,7 @@ lumos_sources = [ 'window.py', 'widgets/widgets_loader.py', 'widgets/time_priority_page.py', + 'widgets/aperture_priority_page.py', ] install_data(lumos_sources, install_dir: moduledir) diff --git a/src/widgets/aperture_priority_page.py b/src/widgets/aperture_priority_page.py new file mode 100644 index 0000000..1e2867d --- /dev/null +++ b/src/widgets/aperture_priority_page.py @@ -0,0 +1,26 @@ +# aperture_priority_page.py +# +# Copyright 2024 Daniele Verducci +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# SPDX-License-Identifier: GPL-3.0-or-later + +from gi.repository import Adw +from gi.repository import Gtk + +@Gtk.Template(resource_path='/eu/ichibi/Lumos/widgets/aperture_priority_page.ui') +class AperturePriorityPage(Gtk.Box): + __gtype_name__ = 'AperturePriorityPage' + diff --git a/src/widgets/aperture_priority_page.ui b/src/widgets/aperture_priority_page.ui new file mode 100644 index 0000000..e6188f6 --- /dev/null +++ b/src/widgets/aperture_priority_page.ui @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/widgets/widgets_loader.py b/src/widgets/widgets_loader.py index 28dfb73..975bac6 100644 --- a/src/widgets/widgets_loader.py +++ b/src/widgets/widgets_loader.py @@ -1,8 +1,10 @@ from gi.repository import GObject from .time_priority_page import TimePriorityPage +from .aperture_priority_page import AperturePriorityPage # Register widgets to be used in templates UI def registerWidgets() -> None: GObject.type_ensure(TimePriorityPage) + GObject.type_ensure(AperturePriorityPage) diff --git a/src/window.ui b/src/window.ui index 1864efa..25b9b3e 100644 --- a/src/window.ui +++ b/src/window.ui @@ -35,11 +35,7 @@ camera-shutter-symbolic true - - Aperture priority mode! - +