1
0
Fork 0
mirror of synced 2024-05-17 19:03:08 +12:00

Basic settings

This commit is contained in:
Rafał Mikrut 2023-11-01 16:36:38 +01:00
parent 4ae23037e4
commit e00256d904
6 changed files with 252 additions and 268 deletions

391
Cargo.lock generated
View file

@ -4,9 +4,9 @@ version = 3
[[package]]
name = "ab_glyph"
version = "0.2.22"
version = "0.2.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1061f3ff92c2f65800df1f12fc7b4ff44ee14783104187dd04dfee6f11b0fd2"
checksum = "80179d7dd5d7e8c285d67c4a1e652972a92de7475beddfb92028c76463b13225"
dependencies = [
"ab_glyph_rasterizer",
"owned_ttf_parser",
@ -492,7 +492,7 @@ checksum = "7b50b5a44d59a98c55a9eeb518f39bf7499ba19fd98ee7d22618687f3f10adbf"
dependencies = [
"bitflags 2.4.1",
"log",
"polling 3.2.0",
"polling 3.3.0",
"rustix",
"slab",
"thiserror",
@ -507,7 +507,7 @@ dependencies = [
"calloop 0.12.3",
"rustix",
"wayland-backend",
"wayland-client 0.31.1",
"wayland-client",
]
[[package]]
@ -773,7 +773,7 @@ dependencies = [
[[package]]
name = "const-field-offset"
version = "0.1.3"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"const-field-offset-macro",
"field-offset",
@ -782,7 +782,7 @@ dependencies = [
[[package]]
name = "const-field-offset-macro"
version = "0.1.3"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"proc-macro2",
"quote",
@ -815,9 +815,9 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
[[package]]
name = "copypasta"
version = "0.8.2"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "133fc8675ee3a4ec9aa513584deda9aa0faeda3586b87f7f0f2ba082c66fb172"
checksum = "6d35364349bf9e9e1c3a035ddcb00d188d23a3c40c50244c03c27a99fc6a65ae"
dependencies = [
"clipboard-win",
"objc",
@ -1448,9 +1448,9 @@ dependencies = [
[[package]]
name = "fdeflate"
version = "0.3.0"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d329bdeac514ee06249dabc27877490f17f5d371ec693360768b838e19f3ae10"
checksum = "64d6dafc854908ff5da46ff3f8f473c6984119a2876a383a860246dd7841a868"
dependencies = [
"simd-adler32",
]
@ -1906,16 +1906,6 @@ dependencies = [
"version_check",
]
[[package]]
name = "gethostname"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e"
dependencies = [
"libc",
"winapi",
]
[[package]]
name = "gethostname"
version = "0.3.0"
@ -2022,7 +2012,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8da903822b136d42360518653fcf154455defc437d3e7a81475bf9a95ff1e47"
dependencies = [
"heck",
"proc-macro-crate",
"proc-macro-crate 1.3.1",
"proc-macro-error",
"proc-macro2",
"quote",
@ -2068,9 +2058,9 @@ dependencies = [
[[package]]
name = "glutin"
version = "0.31.0"
version = "0.31.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04c03bcbdb3c865ac10196deaddbcea719e601d2d3eef7541872b8dee3492a36"
checksum = "eca18d477e18c996c1fd1a50e04c6a745b67e2d512c7fb51f2757d9486a0e3ee"
dependencies = [
"bitflags 2.4.1",
"cfg_aliases",
@ -2085,7 +2075,7 @@ dependencies = [
"objc2",
"once_cell",
"raw-window-handle 0.5.2",
"wayland-sys 0.31.1",
"wayland-sys",
"windows-sys 0.48.0",
"x11-dl",
]
@ -2224,7 +2214,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d57ec49cf9b657f69a05bca8027cff0a8dfd0c49e812be026fc7311f2163832f"
dependencies = [
"anyhow",
"proc-macro-crate",
"proc-macro-crate 1.3.1",
"proc-macro-error",
"proc-macro2",
"quote",
@ -2342,7 +2332,7 @@ dependencies = [
[[package]]
name = "i-slint-backend-linuxkms"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"calloop 0.11.0",
"drm",
@ -2363,7 +2353,7 @@ dependencies = [
[[package]]
name = "i-slint-backend-selector"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"cfg-if",
"i-slint-backend-linuxkms",
@ -2376,7 +2366,7 @@ dependencies = [
[[package]]
name = "i-slint-backend-winit"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"accesskit",
"bytemuck",
@ -2412,7 +2402,7 @@ dependencies = [
[[package]]
name = "i-slint-common"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"cfg-if",
"derive_more",
@ -2423,7 +2413,7 @@ dependencies = [
[[package]]
name = "i-slint-compiler"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"by_address",
"codemap",
@ -2452,7 +2442,7 @@ dependencies = [
[[package]]
name = "i-slint-core"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"auto_enums",
"bytemuck",
@ -2495,7 +2485,7 @@ dependencies = [
[[package]]
name = "i-slint-core-macros"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"quote",
"syn 2.0.38",
@ -2504,7 +2494,7 @@ dependencies = [
[[package]]
name = "i-slint-renderer-femtovg"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"cfg-if",
"const-field-offset",
@ -2536,7 +2526,7 @@ dependencies = [
[[package]]
name = "i-slint-renderer-skia"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"ash",
"bytemuck",
@ -2579,7 +2569,7 @@ dependencies = [
"serde",
"serde_derive",
"thiserror",
"toml 0.8.5",
"toml 0.8.6",
"unic-langid",
]
@ -2765,9 +2755,9 @@ dependencies = [
[[package]]
name = "indexmap"
version = "2.0.2"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897"
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
dependencies = [
"equivalent",
"hashbrown 0.14.2",
@ -3253,15 +3243,6 @@ version = "2.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
[[package]]
name = "memmap2"
version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
dependencies = [
"libc",
]
[[package]]
name = "memmap2"
version = "0.6.2"
@ -3289,15 +3270,6 @@ dependencies = [
"libc",
]
[[package]]
name = "memoffset"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
dependencies = [
"autocfg",
]
[[package]]
name = "memoffset"
version = "0.7.1"
@ -3411,18 +3383,6 @@ dependencies = [
"jni-sys",
]
[[package]]
name = "nix"
version = "0.24.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069"
dependencies = [
"bitflags 1.3.2",
"cfg-if",
"libc",
"memoffset 0.6.5",
]
[[package]]
name = "nix"
version = "0.26.4"
@ -3517,20 +3477,20 @@ dependencies = [
[[package]]
name = "num_enum"
version = "0.7.0"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70bf6736f74634d299d00086f02986875b3c2d924781a6a2cb6c201e73da0ceb"
checksum = "683751d591e6d81200c39fb0d1032608b77724f34114db54f571ff1317b337c0"
dependencies = [
"num_enum_derive",
]
[[package]]
name = "num_enum_derive"
version = "0.7.0"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56ea360eafe1022f7cc56cd7b869ed57330fb2453d0c7831d99b74c65d2f5597"
checksum = "6c11e44798ad209ccdd91fc192f0526a369a01234f7373e1b141c96d7cee4f0e"
dependencies = [
"proc-macro-crate",
"proc-macro-crate 2.0.0",
"proc-macro2",
"quote",
"syn 2.0.38",
@ -3653,11 +3613,11 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
[[package]]
name = "owned_ttf_parser"
version = "0.19.0"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "706de7e2214113d63a8238d1910463cfce781129a6f263d13fdb09ff64355ba4"
checksum = "d4586edfe4c648c71797a74c84bacb32b52b212eff5dfe2bb9f2c599844023e7"
dependencies = [
"ttf-parser 0.19.2",
"ttf-parser 0.20.0",
]
[[package]]
@ -3874,9 +3834,9 @@ dependencies = [
[[package]]
name = "polling"
version = "3.2.0"
version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62a79e457c9898100b4298d57d69ec53d06f9a6ed352431ce5f377e082d2e846"
checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531"
dependencies = [
"cfg-if",
"concurrent-queue",
@ -3888,9 +3848,9 @@ dependencies = [
[[package]]
name = "portable-atomic"
version = "1.5.0"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b559898e0b4931ed2d3b959ab0c2da4d99cc644c4b0b1a35b4d344027f474023"
checksum = "3bccab0e7fd7cc19f820a1c8c91720af652d0c88dc9664dd72aef2614f04af3b"
dependencies = [
"critical-section",
]
@ -3936,6 +3896,15 @@ dependencies = [
"toml_edit 0.19.15",
]
[[package]]
name = "proc-macro-crate"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8"
dependencies = [
"toml_edit 0.20.7",
]
[[package]]
name = "proc-macro-error"
version = "1.0.4"
@ -4186,9 +4155,9 @@ dependencies = [
[[package]]
name = "rgb"
version = "0.8.36"
version = "0.8.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20ec2d3e3fc7a92ced357df9cebd5a10b6fb2aa1ee797bf7e9ce2f17dffc8f59"
checksum = "05aaa8004b64fd573fc9d002f4e632d51ad4f026c2b5ba95fcb6c2f32c2c47d8"
dependencies = [
"bytemuck",
]
@ -4339,9 +4308,9 @@ dependencies = [
[[package]]
name = "rustix"
version = "0.38.20"
version = "0.38.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0"
checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3"
dependencies = [
"bitflags 2.4.1",
"errno",
@ -4456,7 +4425,7 @@ dependencies = [
"ab_glyph",
"log",
"memmap2 0.9.0",
"smithay-client-toolkit 0.18.0",
"smithay-client-toolkit",
"tiny-skia 0.11.2",
]
@ -4500,9 +4469,9 @@ dependencies = [
[[package]]
name = "serde_json"
version = "1.0.107"
version = "1.0.108"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65"
checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b"
dependencies = [
"itoa",
"ryu",
@ -4590,9 +4559,9 @@ checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
[[package]]
name = "skia-bindings"
version = "0.67.0"
version = "0.68.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "534eae89c6ff605e4a5088d8583ba3e1bbce98b0da9fd2eba37ce4698c86138a"
checksum = "0af1b86d01552a56d70b515e2bc1af9123acffcc679a7410010e2648f59fbec3"
dependencies = [
"bindgen",
"cc",
@ -4602,15 +4571,15 @@ dependencies = [
"regex",
"serde_json",
"tar",
"toml 0.8.5",
"toml 0.8.6",
"ureq",
]
[[package]]
name = "skia-safe"
version = "0.67.0"
version = "0.68.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd6be5caec5fbe1426bb06cfb6500ec00194d97e5ccad4573e7f972c9d6bd938"
checksum = "ed678303df69daf5b666faf477800ff7fcb7b67316b10a94c31d748d42dd5a83"
dependencies = [
"bitflags 2.4.1",
"lazy_static",
@ -4631,7 +4600,7 @@ dependencies = [
[[package]]
name = "slint"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"const-field-offset",
"i-slint-backend-selector",
@ -4647,18 +4616,18 @@ dependencies = [
[[package]]
name = "slint-build"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"i-slint-compiler",
"spin_on",
"thiserror",
"toml_edit 0.20.5",
"toml_edit 0.20.7",
]
[[package]]
name = "slint-macros"
version = "1.3.0"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"i-slint-compiler",
"proc-macro2",
@ -4681,24 +4650,6 @@ version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
[[package]]
name = "smithay-client-toolkit"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "870427e30b8f2cbe64bf43ec4b86e88fe39b0a84b3f15efd9c9c2d020bc86eb9"
dependencies = [
"bitflags 1.3.2",
"dlib",
"lazy_static",
"log",
"memmap2 0.5.10",
"nix 0.24.3",
"pkg-config",
"wayland-client 0.29.5",
"wayland-cursor 0.29.5",
"wayland-protocols 0.29.5",
]
[[package]]
name = "smithay-client-toolkit"
version = "0.18.0"
@ -4715,23 +4666,24 @@ dependencies = [
"rustix",
"thiserror",
"wayland-backend",
"wayland-client 0.31.1",
"wayland-client",
"wayland-csd-frame",
"wayland-cursor 0.31.0",
"wayland-protocols 0.31.0",
"wayland-cursor",
"wayland-protocols",
"wayland-protocols-wlr",
"wayland-scanner 0.31.0",
"wayland-scanner",
"xkeysym",
]
[[package]]
name = "smithay-clipboard"
version = "0.6.6"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a345c870a1fae0b1b779085e81b51e614767c239e93503588e54c5b17f4b0e8"
checksum = "0bb62b280ce5a5cba847669933a0948d00904cf83845c944eae96a4738cea1a6"
dependencies = [
"smithay-client-toolkit 0.16.1",
"wayland-client 0.29.5",
"libc",
"smithay-client-toolkit",
"wayland-backend",
]
[[package]]
@ -4767,9 +4719,9 @@ dependencies = [
[[package]]
name = "softbuffer"
version = "0.3.2"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0c651aec504a26e45df1f8c8df237ee7eef8e31b3f13b267a69a374adafbbd1"
checksum = "826da2ead8e85d1b4ea579fae3d58ec10c81a77d61deab8918c4a4f7514b2948"
dependencies = [
"as-raw-xcb-connection",
"bytemuck",
@ -4788,11 +4740,11 @@ dependencies = [
"tiny-xlib",
"wasm-bindgen",
"wayland-backend",
"wayland-client 0.31.1",
"wayland-sys 0.31.1",
"wayland-client",
"wayland-sys",
"web-sys",
"windows-sys 0.48.0",
"x11rb 0.12.0",
"x11rb",
]
[[package]]
@ -5111,14 +5063,14 @@ dependencies = [
[[package]]
name = "system-deps"
version = "6.1.2"
version = "6.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94af52f9402f94aac4948a2518b43359be8d9ce6cd9efc1c4de3b2f7b7e897d6"
checksum = "2a2d580ff6a20c55dfb86be5f9c238f67835d0e81cbdea8bf5680e0897320331"
dependencies = [
"cfg-expr",
"heck",
"pkg-config",
"toml 0.8.5",
"toml 0.8.6",
"version-compare",
]
@ -5141,13 +5093,13 @@ checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a"
[[package]]
name = "tempfile"
version = "3.8.0"
version = "3.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef"
checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5"
dependencies = [
"cfg-if",
"fastrand",
"redox_syscall 0.3.5",
"redox_syscall 0.4.1",
"rustix",
"windows-sys 0.48.0",
]
@ -5337,14 +5289,14 @@ dependencies = [
[[package]]
name = "toml"
version = "0.8.5"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3efaf127c78d5339cc547cce4e4d973bd5e4f56e949a06d091c082ebeef2f800"
checksum = "8ff9e3abce27ee2c9a37f9ad37238c1bdd4e789c84ba37df76aa4d528f5072cc"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit 0.20.5",
"toml_edit 0.20.7",
]
[[package]]
@ -5362,18 +5314,18 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap 2.0.2",
"indexmap 2.1.0",
"toml_datetime",
"winnow",
]
[[package]]
name = "toml_edit"
version = "0.20.5"
version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "782bf6c2ddf761c1e7855405e8975472acf76f7f36d0d4328bd3b7a2fae12a85"
checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81"
dependencies = [
"indexmap 2.0.2",
"indexmap 2.1.0",
"serde",
"serde_spanned",
"toml_datetime",
@ -5491,6 +5443,12 @@ version = "0.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49d64318d8311fc2668e48b63969f4343e0a85c4a109aa8460d6672e364b8bd1"
[[package]]
name = "ttf-parser"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17f77d76d837a7830fe1d4f12b7b4ba4192c1888001c7164257e4bc6d21d96b4"
[[package]]
name = "type-map"
version = "0.4.0"
@ -5770,7 +5728,7 @@ dependencies = [
[[package]]
name = "vtable"
version = "0.1.11"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"const-field-offset",
"portable-atomic",
@ -5781,7 +5739,7 @@ dependencies = [
[[package]]
name = "vtable-macro"
version = "0.1.10"
source = "git+https://github.com/slint-ui/slint.git#3deb620953f1307de1b9c0b5b757b5d8ed31a3a1"
source = "git+https://github.com/slint-ui/slint.git#1441719f61e9ab7e393ed6e601dab9b6bcb58a62"
dependencies = [
"proc-macro2",
"quote",
@ -5909,23 +5867,7 @@ dependencies = [
"nix 0.26.4",
"scoped-tls",
"smallvec",
"wayland-sys 0.31.1",
]
[[package]]
name = "wayland-client"
version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f3b068c05a039c9f755f881dc50f01732214f5685e379829759088967c46715"
dependencies = [
"bitflags 1.3.2",
"downcast-rs",
"libc",
"nix 0.24.3",
"scoped-tls",
"wayland-commons",
"wayland-scanner 0.29.5",
"wayland-sys 0.29.5",
"wayland-sys",
]
[[package]]
@ -5937,19 +5879,7 @@ dependencies = [
"bitflags 2.4.1",
"nix 0.26.4",
"wayland-backend",
"wayland-scanner 0.31.0",
]
[[package]]
name = "wayland-commons"
version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8691f134d584a33a6606d9d717b95c4fa20065605f798a3f350d78dced02a902"
dependencies = [
"nix 0.24.3",
"once_cell",
"smallvec",
"wayland-sys 0.29.5",
"wayland-scanner",
]
[[package]]
@ -5963,17 +5893,6 @@ dependencies = [
"wayland-backend",
]
[[package]]
name = "wayland-cursor"
version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6865c6b66f13d6257bef1cd40cbfe8ef2f150fb8ebbdb1e8e873455931377661"
dependencies = [
"nix 0.24.3",
"wayland-client 0.29.5",
"xcursor",
]
[[package]]
name = "wayland-cursor"
version = "0.31.0"
@ -5981,22 +5900,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a44aa20ae986659d6c77d64d808a046996a932aa763913864dc40c359ef7ad5b"
dependencies = [
"nix 0.26.4",
"wayland-client 0.31.1",
"wayland-client",
"xcursor",
]
[[package]]
name = "wayland-protocols"
version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b950621f9354b322ee817a23474e479b34be96c2e909c14f7bc0100e9a970bc6"
dependencies = [
"bitflags 1.3.2",
"wayland-client 0.29.5",
"wayland-commons",
"wayland-scanner 0.29.5",
]
[[package]]
name = "wayland-protocols"
version = "0.31.0"
@ -6005,8 +5912,8 @@ checksum = "e253d7107ba913923dc253967f35e8561a3c65f914543e46843c88ddd729e21c"
dependencies = [
"bitflags 2.4.1",
"wayland-backend",
"wayland-client 0.31.1",
"wayland-scanner 0.31.0",
"wayland-client",
"wayland-scanner",
]
[[package]]
@ -6017,9 +5924,9 @@ checksum = "23803551115ff9ea9bce586860c5c5a971e360825a0309264102a9495a5ff479"
dependencies = [
"bitflags 2.4.1",
"wayland-backend",
"wayland-client 0.31.1",
"wayland-protocols 0.31.0",
"wayland-scanner 0.31.0",
"wayland-client",
"wayland-protocols",
"wayland-scanner",
]
[[package]]
@ -6030,20 +5937,9 @@ checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6"
dependencies = [
"bitflags 2.4.1",
"wayland-backend",
"wayland-client 0.31.1",
"wayland-protocols 0.31.0",
"wayland-scanner 0.31.0",
]
[[package]]
name = "wayland-scanner"
version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f4303d8fa22ab852f789e75a967f0a2cdc430a607751c0499bada3e451cbd53"
dependencies = [
"proc-macro2",
"quote",
"xml-rs",
"wayland-client",
"wayland-protocols",
"wayland-scanner",
]
[[package]]
@ -6057,17 +5953,6 @@ dependencies = [
"quote",
]
[[package]]
name = "wayland-sys"
version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be12ce1a3c39ec7dba25594b97b42cb3195d54953ddb9d3d95a7c3902bc6e9d4"
dependencies = [
"dlib",
"lazy_static",
"pkg-config",
]
[[package]]
name = "wayland-sys"
version = "0.31.1"
@ -6325,9 +6210,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "winit"
version = "0.29.2"
version = "0.29.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b829f75d02fe1e225b97c91a04c326900147a50234d1141a1cbe215ce8798c11"
checksum = "161598019a9da35ab6c34dc46cd13546cba9dbf9816475d4dd9a639455016563"
dependencies = [
"ahash",
"android-activity",
@ -6354,28 +6239,28 @@ dependencies = [
"redox_syscall 0.3.5",
"rustix",
"sctk-adwaita",
"smithay-client-toolkit 0.18.0",
"smithay-client-toolkit",
"smol_str",
"unicode-segmentation",
"wasm-bindgen",
"wasm-bindgen-futures",
"wayland-backend",
"wayland-client 0.31.1",
"wayland-protocols 0.31.0",
"wayland-client",
"wayland-protocols",
"wayland-protocols-plasma",
"web-sys",
"web-time",
"windows-sys 0.48.0",
"x11-dl",
"x11rb 0.12.0",
"x11rb",
"xkbcommon-dl",
]
[[package]]
name = "winnow"
version = "0.5.17"
version = "0.5.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3b801d0e0a6726477cc207f60162da452f3a95adb368399bef20a946e06f65c"
checksum = "176b6138793677221d420fd2f0aeeced263f197688b36484660da767bca2fa32"
dependencies = [
"memchr",
]
@ -6391,11 +6276,11 @@ dependencies = [
[[package]]
name = "x11-clipboard"
version = "0.7.1"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "980b9aa9226c3b7de8e2adb11bf20124327c054e0e5812d2aac0b5b5a87e7464"
checksum = "b41aca1115b1f195f21c541c5efb423470848d48143127d0f07f8b90c27440df"
dependencies = [
"x11rb 0.10.1",
"x11rb",
]
[[package]]
@ -6409,19 +6294,6 @@ dependencies = [
"pkg-config",
]
[[package]]
name = "x11rb"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "592b4883219f345e712b3209c62654ebda0bb50887f330cbd018d0f654bfd507"
dependencies = [
"gethostname 0.2.3",
"nix 0.24.3",
"winapi",
"winapi-wsapoll",
"x11rb-protocol 0.10.0",
]
[[package]]
name = "x11rb"
version = "0.12.0"
@ -6429,23 +6301,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1641b26d4dec61337c35a1b1aaf9e3cba8f46f0b43636c609ab0291a648040a"
dependencies = [
"as-raw-xcb-connection",
"gethostname 0.3.0",
"gethostname",
"libc",
"libloading 0.7.4",
"nix 0.26.4",
"once_cell",
"winapi",
"winapi-wsapoll",
"x11rb-protocol 0.12.0",
]
[[package]]
name = "x11rb-protocol"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56b245751c0ac9db0e006dc812031482784e434630205a93c73cfefcaabeac67"
dependencies = [
"nix 0.24.3",
"x11rb-protocol",
]
[[package]]
@ -6540,18 +6403,18 @@ dependencies = [
[[package]]
name = "zerocopy"
version = "0.7.15"
version = "0.7.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81ba595b9f2772fbee2312de30eeb80ec773b4cb2f1e8098db024afadda6c06f"
checksum = "686b7e407015242119c33dab17b8f61ba6843534de936d94368856528eae4dcc"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.15"
version = "0.7.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "772666c41fb6dceaf520b564b962d738a8e1a83b41bd48945f50837aed78bb1d"
checksum = "020f3dfe25dfc38dfea49ce62d5d45ecdd7f0d8a724fa63eb36b6eba4ec76806"
dependencies = [
"proc-macro2",
"quote",

View file

@ -18,6 +18,7 @@ mod connect_open;
mod connect_progress_receiver;
mod connect_scan;
mod connect_stop;
mod settings;
use crossbeam_channel::{unbounded, Receiver, Sender};
use std::path::Path;
@ -29,6 +30,7 @@ use crate::connect_scan::connect_scan_button;
use crate::connect_progress_receiver::connect_progress_gathering;
use crate::connect_stop::connect_stop_button;
use crate::settings::reset_settings;
use czkawka_core::common::setup_logger;
use czkawka_core::common_dir_traversal::ProgressData;
use slint::{ModelRc, VecModel};
@ -50,12 +52,14 @@ fn main() {
connect_open_items(&app);
connect_progress_gathering(&app, progress_receiver);
reset_settings(&app);
app.run().unwrap();
}
// TODO remove this after trying
pub fn to_remove_debug(app: &MainWindow) {
let row_data: Rc<VecModel<MainListModel>> = Rc::new(VecModel::default());
let header_row_data: Rc<VecModel<MainListModel>> = Rc::new(VecModel::default());
for r in 0..100_000 {
let items = VecModel::default();
@ -73,9 +77,31 @@ pub fn to_remove_debug(app: &MainWindow) {
val: ModelRc::new(items),
};
row_data.push(item);
header_row_data.push(item);
}
app.set_empty_folder_model(row_data.into());
let non_header_row_data: Rc<VecModel<MainListModel>> = Rc::new(VecModel::default());
for r in 0..100_000 {
let items = VecModel::default();
for c in 0..3 {
items.push(slint::format!("Item {r}.{c}"));
}
let is_checked = r % 2 == 0;
let item = MainListModel {
checked: is_checked,
header_row: false,
selected_row: false,
val: ModelRc::new(items),
};
non_header_row_data.push(item);
}
app.set_empty_folder_model(non_header_row_data.clone().into());
app.set_empty_files_model(non_header_row_data.into());
app.set_similar_images_model(header_row_data.into());
}
pub fn split_path(path: &Path) -> (String, String) {

View file

@ -0,0 +1,23 @@
use crate::MainWindow;
use std::env;
use crate::Settings;
use slint::{ComponentHandle, ModelRc, SharedString, StandardListViewItem, VecModel};
pub fn reset_settings(app: &MainWindow) {
let settings = app.global::<Settings>();
// Get current folder where executed binary is
let current_folder = env::current_dir();
let mut included_directories = vec![];
if let Ok(current_dir) = current_folder {
included_directories.push(current_dir.to_string_lossy().to_string());
};
let included_items = VecModel::default();
for i in included_directories {
let mut element = StandardListViewItem::default();
element.text = SharedString::from(i);
included_items.push(element);
}
settings.set_included_directories(ModelRc::new(included_items));
}

View file

@ -0,0 +1,57 @@
import {Button, StandardListView, VerticalBox} from "std-widgets.slint";
import {Settings} from "settings.slint";
export component BottomPanel {
min-height: 50px;
min-width: 400px;
out property <length> buttonSize: 75px;
HorizontalLayout {
VerticalLayout {
width: buttonSize;
Button {
text: "Add";
}
Button {
text: "Remove";
}
Rectangle {
vertical-stretch: 1.0;
}
}
VerticalLayout {
Rectangle {
Text {
text: "Included Directories";
}
}
StandardListView {
model: Settings.included-directories;
}
}
VerticalLayout {
width: buttonSize;
Button {
text: "Add";
}
Button {
text: "Remove";
}
Rectangle {
vertical-stretch: 1.0;
}
}
VerticalLayout {
Rectangle {
Text {
text: "Excluded Directories";
}
}
StandardListView {
model: Settings.excluded-directories;
}
}
}
}

View file

@ -6,6 +6,10 @@ import {CurrentTab, ProgressToSend} from "common.slint";
import { ActionButtons } from "action_buttons.slint";
import { Progress } from "progress.slint";
import {MainListModel} from "common.slint";
import {Settings, SettingsModel} from "settings.slint";
import { BottomPanel } from "bottom_panel.slint";
export {Settings}
export component MainWindow inherits Window {
callback deleted;
@ -110,6 +114,9 @@ export component MainWindow inherits Window {
text_summary := LineEdit {
read-only: true;
}
BottomPanel {
vertical-stretch: 0.0;
}
}
scan_ended() => {

View file

@ -1,3 +1,11 @@
export struct SettingsModel {
is_selected: bool,
}
export global Settings {
in-out property<color> todo: blue;
in-out property<SettingsModel> model;
in-out property<bool> checkbox_checked: false;
in-out property <[StandardListViewItem]> included_directories: [{text: "ABCD"}, {text: "BCDA"}];
in-out property <[StandardListViewItem]> excluded_directories: [{text: "ABCD"}, {text: "BCDA"}, {text: "CDFFF"}];
}