mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2024-11-23 17:13:11 +03:00
Edit indicator.rs
This commit is contained in:
parent
3e37cc9a00
commit
258cda823b
208
Cargo.lock
generated
208
Cargo.lock
generated
@ -26,6 +26,15 @@ dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ansi_term"
|
||||
version = "0.12.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
|
||||
dependencies = [
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "anyhow"
|
||||
version = "1.0.66"
|
||||
@ -44,6 +53,17 @@ dependencies = [
|
||||
"system-deps 6.0.3",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "atty"
|
||||
version = "0.2.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
||||
dependencies = [
|
||||
"hermit-abi",
|
||||
"libc",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "autocfg"
|
||||
version = "1.1.0"
|
||||
@ -75,6 +95,7 @@ dependencies = [
|
||||
"glib 0.10.3",
|
||||
"gtk-sys",
|
||||
"gtk4",
|
||||
"ksni",
|
||||
"regex",
|
||||
"rust-ini",
|
||||
"secfmt",
|
||||
@ -103,7 +124,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "cairo-rs"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cairo-sys-rs 0.17.0",
|
||||
@ -127,7 +148,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "cairo-sys-rs"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"glib-sys 0.17.0",
|
||||
"libc",
|
||||
@ -136,9 +157,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cc"
|
||||
version = "1.0.73"
|
||||
version = "1.0.76"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
|
||||
checksum = "76a284da2e6fe2092f2353e51713435363112dfd60030e22add80be333fb928f"
|
||||
|
||||
[[package]]
|
||||
name = "cfg-expr"
|
||||
@ -163,9 +184,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "chrono"
|
||||
version = "0.4.22"
|
||||
version = "0.4.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1"
|
||||
checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f"
|
||||
dependencies = [
|
||||
"iana-time-zone",
|
||||
"js-sys",
|
||||
@ -176,6 +197,21 @@ dependencies = [
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "clap"
|
||||
version = "2.34.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
|
||||
dependencies = [
|
||||
"ansi_term",
|
||||
"atty",
|
||||
"bitflags",
|
||||
"strsim",
|
||||
"textwrap",
|
||||
"unicode-width",
|
||||
"vec_map",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "codespan-reporting"
|
||||
version = "0.11.1"
|
||||
@ -194,9 +230,9 @@ checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
|
||||
|
||||
[[package]]
|
||||
name = "cxx"
|
||||
version = "1.0.80"
|
||||
version = "1.0.81"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6b7d4e43b25d3c994662706a1d4fcfc32aaa6afd287502c111b237093bb23f3a"
|
||||
checksum = "97abf9f0eca9e52b7f81b945524e76710e6cb2366aead23b7d4fbf72e281f888"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"cxxbridge-flags",
|
||||
@ -206,9 +242,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cxx-build"
|
||||
version = "1.0.80"
|
||||
version = "1.0.81"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "84f8829ddc213e2c1368e51a2564c552b65a8cb6a28f31e576270ac81d5e5827"
|
||||
checksum = "7cc32cc5fea1d894b77d269ddb9f192110069a8a9c1f1d441195fba90553dea3"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"codespan-reporting",
|
||||
@ -221,21 +257,52 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cxxbridge-flags"
|
||||
version = "1.0.80"
|
||||
version = "1.0.81"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e72537424b474af1460806647c41d4b6d35d09ef7fe031c5c2fa5766047cc56a"
|
||||
checksum = "8ca220e4794c934dc6b1207c3b42856ad4c302f2df1712e9f8d2eec5afaacf1f"
|
||||
|
||||
[[package]]
|
||||
name = "cxxbridge-macro"
|
||||
version = "1.0.80"
|
||||
version = "1.0.81"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "309e4fb93eed90e1e14bea0da16b209f81813ba9fc7830c20ed151dd7bc0a4d7"
|
||||
checksum = "b846f081361125bfc8dc9d3940c84e1fd83ba54bbca7b17cd29483c828be0704"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dbus"
|
||||
version = "0.9.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6f8bcdd56d2e5c4ed26a529c5a9029f5db8290d433497506f958eae3be148eb6"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"libdbus-sys",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dbus-codegen"
|
||||
version = "0.9.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a49da9fdfbe872d4841d56605dc42efa5e6ca3291299b87f44e1cde91a28617c"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"dbus",
|
||||
"xml-rs",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dbus-tree"
|
||||
version = "0.9.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f456e698ae8e54575e19ddb1f9b7bce2298568524f215496b248eb9498b4f508"
|
||||
dependencies = [
|
||||
"dbus",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dirs"
|
||||
version = "4.0.0"
|
||||
@ -401,7 +468,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gdk-pixbuf"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"gdk-pixbuf-sys 0.17.0",
|
||||
@ -439,7 +506,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gdk-pixbuf-sys"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"gio-sys 0.17.0",
|
||||
"glib-sys 0.17.0",
|
||||
@ -484,7 +551,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gdk4"
|
||||
version = "0.6.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk4-rs.git#e47eca402b90322ec9e8c2fcc0f93d6a3a8b037e"
|
||||
source = "git+https://github.com/gtk-rs/gtk4-rs.git#1c00c6d48d8e6f3b1a97714c26c23478dc8bbd22"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cairo-rs 0.17.0",
|
||||
@ -516,7 +583,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gdk4-sys"
|
||||
version = "0.6.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk4-rs.git#e47eca402b90322ec9e8c2fcc0f93d6a3a8b037e"
|
||||
source = "git+https://github.com/gtk-rs/gtk4-rs.git#1c00c6d48d8e6f3b1a97714c26c23478dc8bbd22"
|
||||
dependencies = [
|
||||
"cairo-sys-rs 0.17.0",
|
||||
"gdk-pixbuf-sys 0.17.0",
|
||||
@ -601,7 +668,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gio"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"futures-channel",
|
||||
@ -646,7 +713,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gio-sys"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"glib-sys 0.17.0",
|
||||
"gobject-sys 0.17.0",
|
||||
@ -697,7 +764,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "glib"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"futures-channel",
|
||||
@ -749,7 +816,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "glib-macros"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"heck 0.4.0",
|
||||
@ -783,7 +850,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "glib-sys"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"system-deps 6.0.3",
|
||||
@ -814,7 +881,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gobject-sys"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"glib-sys 0.17.0",
|
||||
"libc",
|
||||
@ -976,10 +1043,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
|
||||
|
||||
[[package]]
|
||||
name = "iana-time-zone"
|
||||
version = "0.1.51"
|
||||
name = "hermit-abi"
|
||||
version = "0.1.19"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f5a6ef98976b22b3b7f2f3a806f858cb862044cfa66805aa3ad84cb3d3b785ed"
|
||||
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "iana-time-zone"
|
||||
version = "0.1.53"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765"
|
||||
dependencies = [
|
||||
"android_system_properties",
|
||||
"core-foundation-sys",
|
||||
@ -1017,6 +1093,18 @@ dependencies = [
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ksni"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "48b786146a6b576a000a289d8e1a834a3de60db75973f43ebbfec733270973f0"
|
||||
dependencies = [
|
||||
"dbus",
|
||||
"dbus-codegen",
|
||||
"dbus-tree",
|
||||
"thiserror",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.4.0"
|
||||
@ -1029,6 +1117,15 @@ version = "0.2.137"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89"
|
||||
|
||||
[[package]]
|
||||
name = "libdbus-sys"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c185b5b7ad900923ef3a8ff594083d4d9b5aea80bb4f32b8342363138c0d456b"
|
||||
dependencies = [
|
||||
"pkg-config",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "link-cplusplus"
|
||||
version = "1.0.7"
|
||||
@ -1134,9 +1231,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.15.0"
|
||||
version = "1.16.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1"
|
||||
checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860"
|
||||
|
||||
[[package]]
|
||||
name = "ordered-multimap"
|
||||
@ -1164,7 +1261,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "pango"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"gio 0.17.0",
|
||||
@ -1189,7 +1286,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "pango-sys"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#cc7a2b1de10b1bc65f1841f259b8c118fec4221c"
|
||||
source = "git+https://github.com/gtk-rs/gtk-rs-core#8f989cc26bb8021a2b7b22c0ee7654bf501924d2"
|
||||
dependencies = [
|
||||
"glib-sys 0.17.0",
|
||||
"gobject-sys 0.17.0",
|
||||
@ -1199,9 +1296,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "pest"
|
||||
version = "2.4.0"
|
||||
version = "2.4.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "dbc7bc69c062e492337d74d59b120c274fd3d261b6bf6d3207d499b4b379c41a"
|
||||
checksum = "a528564cc62c19a7acac4d81e01f39e53e25e17b934878f4c6d25cc2836e62f8"
|
||||
dependencies = [
|
||||
"thiserror",
|
||||
"ucd-trie",
|
||||
@ -1227,9 +1324,9 @@ checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
|
||||
|
||||
[[package]]
|
||||
name = "ppv-lite86"
|
||||
version = "0.2.16"
|
||||
version = "0.2.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
|
||||
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro-crate"
|
||||
@ -1354,9 +1451,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "regex"
|
||||
version = "1.6.0"
|
||||
version = "1.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b"
|
||||
checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"memchr",
|
||||
@ -1365,9 +1462,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "regex-syntax"
|
||||
version = "0.6.27"
|
||||
version = "0.6.28"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244"
|
||||
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
||||
|
||||
[[package]]
|
||||
name = "rust-ini"
|
||||
@ -1439,6 +1536,12 @@ version = "1.10.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
|
||||
|
||||
[[package]]
|
||||
name = "strsim"
|
||||
version = "0.8.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
||||
|
||||
[[package]]
|
||||
name = "strum"
|
||||
version = "0.18.0"
|
||||
@ -1503,7 +1606,7 @@ dependencies = [
|
||||
"heck 0.4.0",
|
||||
"pkg-config",
|
||||
"toml",
|
||||
"version-compare 0.1.0",
|
||||
"version-compare 0.1.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -1521,6 +1624,15 @@ dependencies = [
|
||||
"winapi-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "textwrap"
|
||||
version = "0.11.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
|
||||
dependencies = [
|
||||
"unicode-width",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "thiserror"
|
||||
version = "1.0.37"
|
||||
@ -1585,6 +1697,12 @@ version = "0.1.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b"
|
||||
|
||||
[[package]]
|
||||
name = "vec_map"
|
||||
version = "0.8.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
||||
|
||||
[[package]]
|
||||
name = "version-compare"
|
||||
version = "0.0.10"
|
||||
@ -1593,9 +1711,9 @@ checksum = "d63556a25bae6ea31b52e640d7c41d1ab27faba4ccb600013837a3d0b3994ca1"
|
||||
|
||||
[[package]]
|
||||
name = "version-compare"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fe88247b92c1df6b6de80ddc290f3976dbdf2f5f5d3fd049a9fb598c6dd5ca73"
|
||||
checksum = "579a42fc0b8e0c63b76519a339be31bed574929511fa53c1a3acae26eb258f29"
|
||||
|
||||
[[package]]
|
||||
name = "version_check"
|
||||
@ -1699,3 +1817,9 @@ name = "winapi-x86_64-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
|
||||
[[package]]
|
||||
name = "xml-rs"
|
||||
version = "0.8.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3"
|
||||
|
@ -18,6 +18,7 @@ rust-ini = "0.16"
|
||||
regex = "1.4.3"
|
||||
secfmt = "0.1.1"
|
||||
subprocess = "0.2.6"
|
||||
ksni = "0.2.0"
|
||||
|
||||
[dependencies.gio]
|
||||
version = "0.15.0"
|
||||
|
@ -12,6 +12,7 @@
|
||||
inkscape:export-ydpi="96"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
@ -29,7 +30,247 @@
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs66" />
|
||||
id="defs66">
|
||||
<linearGradient
|
||||
id="linearGradient4698"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#058ef6;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4696" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4621"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4619" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4615"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#030303;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4613" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4609"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4607" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4549"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#030303;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4547" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4543"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#058ef6;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4541" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4064"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#058ef6;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4062" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3862"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#fcfcfc;stop-opacity:0;"
|
||||
offset="0"
|
||||
id="stop3860" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient1624"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1622" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient1618"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop1616" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3311"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#090028;stop-opacity:0.60392159;"
|
||||
offset="0"
|
||||
id="stop3309" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3305"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#058ef6;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3303" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3299"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#1192f3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3297" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3293"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#1192f3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3291" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3287"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#1192f3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3285" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3257"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#ff0000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3255" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3251"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#1192f3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3249" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3245"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3243" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3225"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#ff0000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3223" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3213"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#ff0000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3211" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3207"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#030303;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3205" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2948"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#1192f3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2946" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient856"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#1192f3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop854" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient850"
|
||||
inkscape:swatch="solid">
|
||||
<stop
|
||||
style="stop-color:#1192f3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop848" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3207"
|
||||
id="linearGradient3209"
|
||||
x1="121.80067"
|
||||
y1="84.575974"
|
||||
x2="168.20712"
|
||||
y2="84.575974"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3213"
|
||||
id="linearGradient3215"
|
||||
x1="121.80067"
|
||||
y1="84.575973"
|
||||
x2="168.20712"
|
||||
y2="84.575973"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3245"
|
||||
id="linearGradient3247"
|
||||
x1="8.210619"
|
||||
y1="85.030476"
|
||||
x2="118.6838"
|
||||
y2="85.030476"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3862"
|
||||
id="linearGradient4066"
|
||||
x1="-98.70813"
|
||||
y1="91.882187"
|
||||
x2="-19.218285"
|
||||
y2="91.882187"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.72827722,0,0,0.8345753,80.950138,8.2092762)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3862"
|
||||
id="linearGradient4258"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.72827722,0,0,0.8345753,132.37174,8.2021688)"
|
||||
x1="-98.70813"
|
||||
y1="91.882187"
|
||||
x2="-19.218285"
|
||||
y2="91.882187" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
@ -40,15 +281,15 @@
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="768"
|
||||
inkscape:window-height="692"
|
||||
id="namedview64"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.4355468"
|
||||
inkscape:cx="42.492519"
|
||||
inkscape:cy="116.68028"
|
||||
inkscape:zoom="2.5013183"
|
||||
inkscape:cx="77.159314"
|
||||
inkscape:cy="74.360789"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g70"
|
||||
inkscape:document-rotation="0"
|
||||
inkscape:showpageshadow="2"
|
||||
@ -59,57 +300,64 @@
|
||||
inkscape:label="Image"
|
||||
id="g70">
|
||||
<rect
|
||||
style="opacity:1;fill:#058ef6;fill-opacity:1;stroke:#1192f3;stroke-width:2.94291;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
style="opacity:1;fill:#058ef6;fill-opacity:1;stroke:#1192f3;stroke-width:2.92809;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect949"
|
||||
width="169.03429"
|
||||
height="166.59491"
|
||||
x="-0.016463328"
|
||||
y="1.9358311"
|
||||
rx="22.917007"
|
||||
ry="22.917007" />
|
||||
width="167.32172"
|
||||
height="166.60974"
|
||||
x="1.5693487"
|
||||
y="2.2145147"
|
||||
rx="22.684824"
|
||||
ry="22.919044" />
|
||||
<rect
|
||||
style="opacity:1;fill:#ff0000;fill-rule:evenodd"
|
||||
style="opacity:1;fill:#ff0000;fill-rule:evenodd;fill-opacity:1;stroke:url(#linearGradient3247)"
|
||||
id="rect74"
|
||||
width="77.341507"
|
||||
height="49.077545"
|
||||
x="29.768709"
|
||||
y="60.593201"
|
||||
ry="11.401361"
|
||||
rx="11.401361" />
|
||||
width="110.47318"
|
||||
height="79.478859"
|
||||
x="8.210619"
|
||||
y="45.291046"
|
||||
ry="18.463987"
|
||||
rx="16.285496" />
|
||||
<path
|
||||
style="fill:#ff0000;stroke:none;stroke-width:0.997023px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 109.99267,77.302043 c 0,0 5.75847,-3.347459 18.6015,-10.806803 12.51003,-7.265926 12.51012,2.094989 12.51012,9.665306 0,14.240349 0.14605,7.36815 0.14605,19.538775 0,10.626619 -5.18402,12.675139 -14.67402,7.163269 -13.0879,-7.601565 -16.75001,-8.86939 -16.75001,-8.86939 z"
|
||||
style="fill:url(#linearGradient3215);stroke:url(#linearGradient3209);stroke-width:1.5164px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;paint-order:markers fill stroke;fill-opacity:1"
|
||||
d="m 122.80105,72.350264 c 0,0 8.22528,-5.421058 26.57003,-17.501126 17.8691,-11.766838 17.86924,3.392739 17.86924,15.652523 0,23.061598 0.2086,11.932385 0.2086,31.642149 0,17.20932 -7.40475,20.52681 -20.96009,11.60058 -18.69452,-12.31038 -23.9254,-14.363562 -23.9254,-14.363562 z"
|
||||
id="path114"
|
||||
sodipodi:nodetypes="ccccccc" />
|
||||
<path
|
||||
style="fill:none;stroke:#058ef6;stroke-width:2.593;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 49.376872,72.261226 H 87.866668"
|
||||
id="path947" />
|
||||
<circle
|
||||
style="opacity:1;fill:none;stroke:#1192f3;stroke-width:2.69199;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path939"
|
||||
cx="50.618393"
|
||||
cy="85.035378"
|
||||
r="12.880776" />
|
||||
<circle
|
||||
style="opacity:1;fill:none;stroke:#1192f3;stroke-width:2.69199;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
<ellipse
|
||||
style="opacity:0.954171;fill:url(#linearGradient4066);fill-opacity:1;stroke:#000000;stroke-width:0.826393;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
id="path4060"
|
||||
cx="38.008572"
|
||||
cy="84.891869"
|
||||
rx="24.408154"
|
||||
ry="26.722046" />
|
||||
<ellipse
|
||||
style="opacity:0.954171;fill:url(#linearGradient4258);fill-opacity:1;stroke:#000000;stroke-width:0.826393;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
|
||||
id="path4060-6"
|
||||
cx="89.430161"
|
||||
cy="84.884766"
|
||||
rx="24.408154"
|
||||
ry="26.722046" />
|
||||
<rect
|
||||
style="opacity:1;fill:#058ef6;fill-opacity:1;stroke:#000000;stroke-width:1.00159;stroke-linecap:round;stroke-linejoin:miter;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
|
||||
id="rect4605"
|
||||
width="65.381508"
|
||||
height="11.685902"
|
||||
x="31.363594"
|
||||
y="57.767193"
|
||||
rx="21.006493"
|
||||
ry="1.8877746" />
|
||||
<ellipse
|
||||
style="fill:none;stroke:#058ef6;stroke-width:12.2205;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="circle941-2"
|
||||
cx="37.828201"
|
||||
cy="85.038574"
|
||||
rx="18.093803"
|
||||
ry="20.405428" />
|
||||
<ellipse
|
||||
style="opacity:1;fill:none;stroke:#058ef6;stroke-width:12.2205;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="circle941"
|
||||
cx="86.567993"
|
||||
cy="85.035378"
|
||||
r="12.880776" />
|
||||
<ellipse
|
||||
style="opacity:1;fill:#ff0000;stroke:none;stroke-width:0.686962"
|
||||
id="circle943"
|
||||
cx="86.567993"
|
||||
cy="85.035378"
|
||||
rx="9.9928207"
|
||||
ry="9.6856689" />
|
||||
<ellipse
|
||||
style="opacity:1;fill:#ff0000;stroke:none;stroke-width:0.686962"
|
||||
id="ellipse945"
|
||||
cx="50.453194"
|
||||
cy="85.035378"
|
||||
rx="9.9928207"
|
||||
ry="9.6856689" />
|
||||
cx="89.269768"
|
||||
cy="84.87233"
|
||||
rx="18.093803"
|
||||
ry="20.405428" />
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 11 KiB |
@ -1,2 +1,69 @@
|
||||
// TODO: add timer
|
||||
// https://docs.rs/stray/0.1.1/stray/index.html
|
||||
//use gtk::Button;
|
||||
//use gtk::prelude::*;
|
||||
use ksni::menu::StandardItem;
|
||||
use ksni::Tray;
|
||||
use std::path::Path;
|
||||
|
||||
pub struct BlueRecorderTray {
|
||||
//pub stop_record_button: Button,
|
||||
}
|
||||
|
||||
impl Tray for BlueRecorderTray {
|
||||
fn icon_theme_path(&self) -> String {
|
||||
let mut indicator_icon_path = {
|
||||
let mut current_exec_dir = std::env::current_exe().unwrap();
|
||||
current_exec_dir.pop();
|
||||
current_exec_dir
|
||||
}
|
||||
.join(Path::new("data/"));
|
||||
|
||||
if !indicator_icon_path.exists() {
|
||||
indicator_icon_path = std::fs::canonicalize(Path::new(
|
||||
&std::env::var("DATA_DIR")
|
||||
.unwrap_or_else(|_| String::from("data/"))
|
||||
))
|
||||
.unwrap();
|
||||
}
|
||||
indicator_icon_path.to_str().unwrap().into()
|
||||
}
|
||||
|
||||
fn icon_name(&self) -> String {
|
||||
"blue-recorder-active".into()
|
||||
}
|
||||
|
||||
fn title(&self) -> String {
|
||||
"Recording".into()
|
||||
}
|
||||
|
||||
fn menu(&self) -> Vec<ksni::MenuItem<Self>> {
|
||||
vec![
|
||||
StandardItem {
|
||||
label: "Stop Recording".into(),
|
||||
icon_name: "media-playback-stop".into(),
|
||||
//activate: Box::new(|menu_button: &mut Self| {
|
||||
//menu_button.stop_record_button.emit_clicked();
|
||||
//}),
|
||||
..Default::default()
|
||||
}
|
||||
.into(),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
pub struct TrayService {
|
||||
tray_handle: ksni::Handle<BlueRecorderTray>,
|
||||
}
|
||||
|
||||
impl TrayService {
|
||||
pub fn show() -> Self {
|
||||
let service = ksni::TrayService::new(BlueRecorderTray{});
|
||||
let tray_handle = service.handle();
|
||||
service.spawn();
|
||||
TrayService { tray_handle }
|
||||
}
|
||||
|
||||
pub fn close(&self) {
|
||||
self.tray_handle.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
|
26
src/main.rs
26
src/main.rs
@ -121,16 +121,16 @@ pub fn build_ui(application: &Application) {
|
||||
command_entry.set_text(&config_management::get("default", "command"));
|
||||
|
||||
// CheckBox
|
||||
//format_chooser_combobox.append(Some("webm"), &gettext("WEBM (Open Web Media File)"));
|
||||
format_chooser_combobox.append(Some("mp4"), &gettext("MP4 (MPEG-4 Part 14)"));
|
||||
//format_chooser_combobox.append(Some("gif"), &gettext("GIF (Graphics Interchange Format)"));
|
||||
format_chooser_combobox.append(
|
||||
Some("mkv"),
|
||||
&gettext("MKV (Matroska multimedia container format)"),
|
||||
);
|
||||
//format_chooser_combobox.append(Some("avi"), &gettext("AVI (Audio Video Interleaved)"));
|
||||
//format_chooser_combobox.append(Some("wmv"), &gettext("WMV (Windows Media Video)"));
|
||||
//format_chooser_combobox.append(Some("nut"), &gettext("NUT (NUT Recording Format)"));
|
||||
format_chooser_combobox.append(Some("mp4"), &gettext("MP4 (MPEG-4 Part 14)"));
|
||||
format_chooser_combobox.append(Some("webm"), &gettext("WEBM (Open Web Media File)"));
|
||||
format_chooser_combobox.append(Some("gif"), &gettext("GIF (Graphics Interchange Format)"));
|
||||
format_chooser_combobox.append(Some("avi"), &gettext("AVI (Audio Video Interleaved)"));
|
||||
format_chooser_combobox.append(Some("wmv"), &gettext("WMV (Windows Media Video)"));
|
||||
format_chooser_combobox.append(Some("nut"), &gettext("NUT (NUT Recording Format)"));
|
||||
format_chooser_combobox.set_active(Some(0));
|
||||
|
||||
// Get audio sources
|
||||
@ -404,6 +404,7 @@ pub fn build_ui(application: &Application) {
|
||||
overwrite: overwrite_switch,
|
||||
}));
|
||||
|
||||
// Record Button
|
||||
let _delay_window = delay_window.clone();
|
||||
let _delay_window_button = delay_window_button.clone();
|
||||
let mut _ffmpeg_record_interface = ffmpeg_record_interface.clone();
|
||||
@ -438,10 +439,7 @@ pub fn build_ui(application: &Application) {
|
||||
}
|
||||
});
|
||||
|
||||
let _delay_window_button = delay_window_button.clone();
|
||||
delay_window_button.connect_clicked(move |_| {
|
||||
});
|
||||
|
||||
// Stop Record Button
|
||||
let mut _ffmpeg_record_interface = ffmpeg_record_interface.clone();
|
||||
let _play_button = play_button.clone();
|
||||
let _stop_button = stop_button.clone();
|
||||
@ -454,6 +452,12 @@ pub fn build_ui(application: &Application) {
|
||||
_play_button.show();
|
||||
});
|
||||
|
||||
// Delay Window Button
|
||||
let _delay_window_button = delay_window_button.clone();
|
||||
delay_window_button.connect_clicked(move |_| {
|
||||
});
|
||||
|
||||
// Play Button
|
||||
let mut _ffmpeg_record_interface = ffmpeg_record_interface.clone();
|
||||
play_button.connect_clicked(move |_| {
|
||||
_ffmpeg_record_interface.borrow_mut().clone().play_record();
|
||||
@ -516,7 +520,7 @@ pub fn build_ui(application: &Application) {
|
||||
main_window.close();
|
||||
});
|
||||
|
||||
// Apply css
|
||||
// Apply CSS
|
||||
let provider = CssProvider::new();
|
||||
provider
|
||||
.load_from_data(include_str!("styles/global.css").as_bytes());
|
||||
|
@ -34,7 +34,7 @@ pub fn recording_delay(delay_spin: SpinButton, mut delay_time: u64, delay_window
|
||||
}
|
||||
|
||||
pub fn start_timer(record_time_label: Label) {
|
||||
let mut start_time = 0;
|
||||
let mut start_time = 1;
|
||||
let capture_record_label = move || {
|
||||
if record_time_label.is_visible() {
|
||||
record_time_label.set_text(¤t_record_time(start_time));
|
||||
|
Loading…
Reference in New Issue
Block a user