WIP stuff
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
2e12fa26c4
commit
a5e5128740
17 changed files with 19858 additions and 13 deletions
|
@ -21,6 +21,10 @@
|
|||
public class PipeTap.Application : Adw.Application {
|
||||
public Settings settings;
|
||||
public bool adjust_overlay_visible { get; set; }
|
||||
public Ui.SliderOverlay exposure;
|
||||
public Ui.SliderOverlay focus;
|
||||
public Ui.MainBar main_bar;
|
||||
public string device { get; set; }
|
||||
|
||||
public Application () {
|
||||
Object (
|
||||
|
@ -50,9 +54,18 @@ public class PipeTap.Application : Adw.Application {
|
|||
styling,
|
||||
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||
|
||||
var win = this.active_window ?? new PipeTap.Ui.MainBar (this);
|
||||
var win2 = new PipeTap.Ui.MainBar (this);
|
||||
win.present ();
|
||||
if (exposure == null)
|
||||
exposure = new Ui.SliderOverlay (this, Logic.Ctrl.CtrlType.Exposure, Logic.Ctrl.CtrlType.ExposureEnable, "exp", "camera-iso-symbolic");
|
||||
if (focus == null)
|
||||
focus = new Ui.SliderOverlay (this, Logic.Ctrl.CtrlType.Focus, Logic.Ctrl.CtrlType.AutoFocusEnable, "focus", "camera-focus-symbolic");
|
||||
if (main_bar == null)
|
||||
main_bar = new Ui.MainBar (this);
|
||||
|
||||
bind_property ("device", main_bar, "visible", GLib.BindingFlags.SYNC_CREATE, (b, v, ref tgt) => {
|
||||
tgt.set_boolean (device != null);
|
||||
message ("%s", device);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
private void on_about_action () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue