From 020b1b9328239b499ae2ecdbfe8bf1a7e998d3c5 Mon Sep 17 00:00:00 2001
From: ochibani <11yzyv86j@relay.firefox.com>
Date: Fri, 20 Dec 2024 15:22:25 +0200
Subject: [PATCH] fix select-window
---
Cargo.lock | 1 +
Cargo.toml | 6 ++-
interfaces/area_selection.ui | 2 +-
interfaces/select_window.ui | 29 +++++++++++-
locales/ar.ftl | 4 +-
locales/ar_YE.ftl | 4 +-
locales/en.ftl | 4 +-
locales/en_US.ftl | 4 +-
src/area_capture.rs | 29 +++++++++++-
src/styles/global.css | 7 +++
src/ui.rs | 92 ++++++++++++++++++++++++++----------
11 files changed, 145 insertions(+), 37 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 1efeb11..4fe0dea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -479,6 +479,7 @@ dependencies = [
"regex",
"rust-ini 0.16.1",
"secfmt",
+ "winapi",
"x-win",
]
diff --git a/Cargo.toml b/Cargo.toml
index 2c951a7..76150d8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,7 +10,6 @@ blue-recorder-core = { git = "https://github.com/ochibani/blue-recorder-core.git
cpal = "0.15.3"
dark-light = "1.0.0"
dirs = "4.0.0"
-display-info = "0.5.1"
fluent-bundle = "0.15.3"
glib = "0.10.3"
libadwaita = { version = "0.1.1" }
@@ -18,4 +17,9 @@ rdev = "0.5"
regex = "1.4.3"
rust-ini = "0.16"
secfmt = "0.1.1"
+
+# Windows-only dependency
+[target.'cfg(windows)'.dependencies]
+display-info = "0.5.1"
x-win = "2.0.2"
+winapi = { version = "0.3", features = ["winuser"] }
diff --git a/interfaces/area_selection.ui b/interfaces/area_selection.ui
index 8ed9bfb..4ee376c 100644
--- a/interfaces/area_selection.ui
+++ b/interfaces/area_selection.ui
@@ -25,7 +25,7 @@
True
vertical
fill
- filr
+ fill