mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2024-11-23 17:13:11 +03:00
chore: changes from formatting on save
This commit is contained in:
parent
ff94308bd9
commit
13c6ea3e13
14
src/main.rs
14
src/main.rs
@ -6,8 +6,8 @@ mod area_capture;
|
|||||||
mod config_management;
|
mod config_management;
|
||||||
mod ffmpeg_interface;
|
mod ffmpeg_interface;
|
||||||
mod timer;
|
mod timer;
|
||||||
mod wayland_record;
|
|
||||||
mod utils;
|
mod utils;
|
||||||
|
mod wayland_record;
|
||||||
|
|
||||||
use ffmpeg_interface::Ffmpeg;
|
use ffmpeg_interface::Ffmpeg;
|
||||||
use gettextrs::{bindtextdomain, gettext, setlocale, textdomain, LocaleCategory};
|
use gettextrs::{bindtextdomain, gettext, setlocale, textdomain, LocaleCategory};
|
||||||
@ -15,19 +15,17 @@ use gtk::glib;
|
|||||||
use gtk::prelude::*;
|
use gtk::prelude::*;
|
||||||
use gtk::{
|
use gtk::{
|
||||||
AboutDialog, Application, Builder, Button, CheckButton, ComboBoxText, CssProvider, Entry,
|
AboutDialog, Application, Builder, Button, CheckButton, ComboBoxText, CssProvider, Entry,
|
||||||
FileChooserAction, FileChooserNative, Image, Label, SpinButton,
|
FileChooserAction, FileChooserNative, Image, Label, SpinButton, ToggleButton, Window,
|
||||||
ToggleButton, Window,
|
|
||||||
};
|
};
|
||||||
use utils::is_wayland;
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::ops::Add;
|
use std::ops::Add;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use timer::{recording_delay, start_timer, stop_timer};
|
use timer::{recording_delay, start_timer, stop_timer};
|
||||||
|
use utils::is_wayland;
|
||||||
use wayland_record::WaylandRecorder;
|
use wayland_record::WaylandRecorder;
|
||||||
|
|
||||||
|
|
||||||
#[async_std::main]
|
#[async_std::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// Create new application
|
// Create new application
|
||||||
@ -107,7 +105,7 @@ pub fn build_ui(application: &Application) {
|
|||||||
main_window.set_title(Some(&gettext("Blue Recorder")));
|
main_window.set_title(Some(&gettext("Blue Recorder")));
|
||||||
main_window.set_application(Some(application));
|
main_window.set_application(Some(application));
|
||||||
area_chooser_window.set_title(Some(&gettext("Area Chooser"))); // Title is hidden
|
area_chooser_window.set_title(Some(&gettext("Area Chooser"))); // Title is hidden
|
||||||
|
|
||||||
// disable interaction with main window
|
// disable interaction with main window
|
||||||
// main_window.set_can_focus(false);
|
// main_window.set_can_focus(false);
|
||||||
// main_window.set_can_target(false);
|
// main_window.set_can_target(false);
|
||||||
@ -284,7 +282,7 @@ pub fn build_ui(application: &Application) {
|
|||||||
|
|
||||||
area_grab_icon.set_from_file(Some(area_icon_path));
|
area_grab_icon.set_from_file(Some(area_icon_path));
|
||||||
screen_grab_icon.set_from_file(Some(screen_icon_path));
|
screen_grab_icon.set_from_file(Some(screen_icon_path));
|
||||||
window_grab_icon.set_from_file(Some(&window_icon_path));
|
window_grab_icon.set_from_file(Some(&window_icon_path));
|
||||||
}
|
}
|
||||||
// any theme
|
// any theme
|
||||||
_ => {
|
_ => {
|
||||||
@ -339,7 +337,7 @@ pub fn build_ui(application: &Application) {
|
|||||||
|
|
||||||
area_grab_icon.set_from_file(Some(area_icon_path));
|
area_grab_icon.set_from_file(Some(area_icon_path));
|
||||||
screen_grab_icon.set_from_file(Some(screen_icon_path));
|
screen_grab_icon.set_from_file(Some(screen_icon_path));
|
||||||
window_grab_icon.set_from_file(Some(&window_icon_path));
|
window_grab_icon.set_from_file(Some(&window_icon_path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Labels
|
// Labels
|
||||||
|
Loading…
Reference in New Issue
Block a user