Initial commit

This commit is contained in:
Lncvrt committed 2026-03-13 19:56:50 -07:00
commit dd3f37e837
4 files changed
+63

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
/target/
/Cargo.lock
+3
View File
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
+9
View File
@@ -0,0 +1,9 @@
[package]
name = "videostore"
version = "0.1.0"
edition = "2024"
[dependencies]
fltk = "1.5.22"
gtk4 = "0.11.0"
image = "0.25.10"
+49
View File
@@ -0,0 +1,49 @@
use gtk4::{Application, ApplicationWindow, Box, Button, Orientation};
use gtk4::{Settings, prelude::*};
fn main() {
let app = Application::builder()
.application_id("xyz.lncvrt.videostore")
.build();
app.connect_activate(|app| {
if let Some(settings) = Settings::default() {
settings.set_property("gtk-application-prefer-dark-theme", true);
}
let window = ApplicationWindow::builder()
.application(app)
.title("VideoStore")
.build();
let vbox = Box::new(Orientation::Vertical, 10);
vbox.set_margin_top(20);
vbox.set_margin_start(20);
vbox.set_margin_end(20);
vbox.set_margin_bottom(20);
vbox.set_halign(gtk4::Align::Center);
vbox.set_valign(gtk4::Align::Center);
let encodebtn = Button::with_label("Encode");
let decodebtn = Button::with_label("Decode");
encodebtn.set_size_request(200, 50);
decodebtn.set_size_request(200, 50);
// encodebtn.connect_clicked(|_| {
// println!("encode clicked");
// });
// decodebtn.connect_clicked(|_| {
// println!("decode clicked");
// });
vbox.append(&encodebtn);
vbox.append(&decodebtn);
window.set_child(Some(&vbox));
window.present();
});
app.run();
}