build: make dark-light desktop dependency
This commit is contained in:
parent
32f8bd11de
commit
b5ef950fb9
2 changed files with 2 additions and 3 deletions
|
@ -61,7 +61,6 @@ rqrr = "0.7.1"
|
||||||
qrcodegen = "1.8.0"
|
qrcodegen = "1.8.0"
|
||||||
ur = "0.4.1"
|
ur = "0.4.1"
|
||||||
gif = "0.13.1"
|
gif = "0.13.1"
|
||||||
dark-light = "1.1.1"
|
|
||||||
|
|
||||||
## tor
|
## tor
|
||||||
arti-client = { version = "0.18.0", features = ["pt-client", "static", "onion-service-service", "onion-service-client"] }
|
arti-client = { version = "0.18.0", features = ["pt-client", "static", "onion-service-service", "onion-service-client"] }
|
||||||
|
@ -102,6 +101,7 @@ winit = { version = "0.29.15" }
|
||||||
eframe = { version = "0.27.2", features = ["wgpu"] }
|
eframe = { version = "0.27.2", features = ["wgpu"] }
|
||||||
arboard = "3.2.0"
|
arboard = "3.2.0"
|
||||||
rfd = "0.14.1"
|
rfd = "0.14.1"
|
||||||
|
dark-light = "1.1.1"
|
||||||
# camera
|
# camera
|
||||||
nokhwa = { git = "https://github.com/l1npengtul/nokhwa", branch = "0.10", features = ["input-native", "output-threaded"] }
|
nokhwa = { git = "https://github.com/l1npengtul/nokhwa", branch = "0.10", features = ["input-native", "output-threaded"] }
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use dark_light::Mode;
|
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[cfg(not(target_os = "android"))]
|
#[cfg(not(target_os = "android"))]
|
||||||
|
@ -39,6 +37,7 @@ fn real_main() {
|
||||||
let platform = Desktop::default();
|
let platform = Desktop::default();
|
||||||
|
|
||||||
// Setup system theme if not set.
|
// Setup system theme if not set.
|
||||||
|
use dark_light::Mode;
|
||||||
if let None = AppConfig::dark_theme() {
|
if let None = AppConfig::dark_theme() {
|
||||||
let dark = match dark_light::detect() {
|
let dark = match dark_light::detect() {
|
||||||
Mode::Dark => true,
|
Mode::Dark => true,
|
||||||
|
|
Loading…
Reference in a new issue