From fc796582a82b4dfd61309f9837caefb5e0fb6326 Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Fri, 28 Aug 2026 11:01:03 +0700 Subject: [PATCH] feat: add default theme --- Cargo.lock | 187 +++++----- Cargo.toml | 2 +- crates/assets/assets/themes/signed.json | 433 ++++++++++++++++++++++++ desktop/src/main.rs | 20 +- 4 files changed, 544 insertions(+), 98 deletions(-) create mode 100644 crates/assets/assets/themes/signed.json diff --git a/Cargo.lock b/Cargo.lock index 13d5499..8312374 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -707,21 +707,6 @@ dependencies = [ "unicode-normalization", ] -[[package]] -name = "bisync" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5020822f6d6f23196ccaf55e228db36f9de1cf788052b37992e17cbc96ec41a7" -dependencies = [ - "bisync_macros", -] - -[[package]] -name = "bisync_macros" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d21f40d350a700f6aa107e45fb26448cf489d34794b2ba4522181dc9f1173af6" - [[package]] name = "bit-set" version = "0.8.0" @@ -2552,9 +2537,9 @@ checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" [[package]] name = "gix" -version = "0.86.0" +version = "0.87.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb3790fd8981cba7949f1ba924ef865d902df731627bc5998d14164063892fce" +checksum = "fdefc1465d8631807deaf504dacdeff628b978de515653b47976ca7c28ab2a7a" dependencies = [ "gix-actor", "gix-attributes", @@ -2576,6 +2561,7 @@ dependencies = [ "gix-index", "gix-lock", "gix-negotiate", + "gix-note", "gix-object", "gix-odb", "gix-pack", @@ -2583,6 +2569,7 @@ dependencies = [ "gix-pathspec", "gix-prompt", "gix-protocol", + "gix-quote", "gix-ref", "gix-refspec", "gix-revision", @@ -2608,9 +2595,9 @@ dependencies = [ [[package]] name = "gix-actor" -version = "0.41.2" +version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33f9308ad6fd35b2a865cbe4117ac61b2be59e4a9ef1621c7a9794f7c8e52c5b" +checksum = "e37efa99929ac62f980fb1a7dcd09dea85b3aa6ead6ba0498362add3f4e698de" dependencies = [ "bstr", "gix-date", @@ -2619,9 +2606,9 @@ dependencies = [ [[package]] name = "gix-attributes" -version = "0.34.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31c593692ebdc1e38858d9a2b56f6a594c501e24a38971fe6685571f5a07be0" +checksum = "76b83782ac69ae28921a6e8fbcf2e24069613f1518030b97ae622b079abffa54" dependencies = [ "bstr", "gix-features", @@ -2636,27 +2623,27 @@ dependencies = [ [[package]] name = "gix-bitmap" -version = "0.3.3" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd1d118d0f5d88b96e6f6e13b566475fef4797ead4a02c26fed36c1375066f7" +checksum = "f17013c7ef5cb95ebb4bf4978201e6a8a42ffea9d666fd5388f1b7e742307d80" dependencies = [ "gix-error", ] [[package]] name = "gix-chunk" -version = "0.7.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2a871e5cab12ba568845714473505deefffb3c04eb47f4708ce344cd459c1cc" +checksum = "00e32f938b3745ac93d73bc7490b6a15a661b2fc81973bfe90e275cc53c908e1" dependencies = [ "gix-error", ] [[package]] name = "gix-command" -version = "0.9.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4363accdf6ef7ba861871d2d521ab7418a04aaaed919fadb022af71d379b12" +checksum = "0d96b8e8423ce2665232bda1b682a62541f07ab801ffad69a034ef962bed3244" dependencies = [ "bstr", "gix-path", @@ -2667,9 +2654,9 @@ dependencies = [ [[package]] name = "gix-commitgraph" -version = "0.38.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2cd7f054ae2727223fe46dd39c012f066b12f532962d336d29ee193261787da" +checksum = "6b93c9fb1f5be01bba54a7a3b7455d359efc68555539c75ef74b8021bb6db497" dependencies = [ "bstr", "gix-chunk", @@ -2681,9 +2668,9 @@ dependencies = [ [[package]] name = "gix-config" -version = "0.59.0" +version = "0.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "103d11bef95c467577ecfa8b7b86a22e65af3507b2c9bfa3809a4afbae7df301" +checksum = "f973c28c0a4871a7926fc90c8377d4458fd6cbb19692f56582b4d2022313ae90" dependencies = [ "bstr", "gix-config-value", @@ -2713,9 +2700,9 @@ dependencies = [ [[package]] name = "gix-credentials" -version = "0.39.1" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9fbdb1c417980d05d547c19fc2b63344b5257c2387048d69ffe957bda142b59" +checksum = "16c11822054fd4b80a1ab722b703f2e7c691b20484d898374289b742c1f49e50" dependencies = [ "bstr", "gix-command", @@ -2732,9 +2719,9 @@ dependencies = [ [[package]] name = "gix-date" -version = "0.15.6" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e47b9e8cdc688296609b706428de570f88b1e0eed7156dde7b4a89d26fa4567" +checksum = "e63d9aa18f29facd571c8953e66224ee0075b9e16622024794555ed4acceea85" dependencies = [ "bstr", "gix-error", @@ -2744,9 +2731,9 @@ dependencies = [ [[package]] name = "gix-diff" -version = "0.66.0" +version = "0.67.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fee7d89a3c507491cdfc57a1d1e0e300214720b4f7709ebc253e422f99822bfc" +checksum = "1b1689ff5ddeee4acfb2a43e875a1072a76d208624b15a9065c938b39cb0da2a" dependencies = [ "bstr", "gix-command", @@ -2765,9 +2752,9 @@ dependencies = [ [[package]] name = "gix-discover" -version = "0.54.0" +version = "0.55.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f517766fa1101dfe2606c1a19a8ffa699099030995a9194445446dfe261bdf" +checksum = "ec32a30ec2934735599c2545f30067e80bd255fd3454b52a5d59bc02b52874a3" dependencies = [ "bstr", "dunce", @@ -2780,9 +2767,9 @@ dependencies = [ [[package]] name = "gix-error" -version = "0.2.5" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a9292309fd944e71b2a3c96d3c03a6feb8852db646febdde7cbb9f79cb5f329" +checksum = "e73b2794a6a746953c24d4ed51e4d408b83d8d599ed4e5c39a47736d75687cf0" dependencies = [ "bstr", ] @@ -2808,9 +2795,9 @@ dependencies = [ [[package]] name = "gix-filter" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e7b5dbf524d97e839f642930c76d7f011c0791e7d11d8148989ac5af7c76aa8" +checksum = "9c30b28d957e2e6f1e1bbfbfd26b8e0bb0aab68d8a5e730fb4fd3049943575e3" dependencies = [ "bstr", "encoding_rs", @@ -2900,9 +2887,9 @@ dependencies = [ [[package]] name = "gix-index" -version = "0.54.0" +version = "0.55.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5009c4e7e9f9b4cfaaab1153e49133eb04d79c015b5702d6c3d2ab94271a89c6" +checksum = "632e16cb48b0e88a747e106924cb2765194105d8070a7a961b0d080ed806c632" dependencies = [ "bitflags 2.13.1", "bstr", @@ -2938,10 +2925,21 @@ dependencies = [ ] [[package]] -name = "gix-negotiate" -version = "0.34.0" +name = "gix-macros" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fa5aa789990f124e4f559b142cecfb60662cb4ae17006684ea9d668f4f07689" +checksum = "d3836b4b051393464a753c5a08fe19c7ce0d8b77574a92bd558972941d4553cb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "gix-negotiate" +version = "0.35.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91068ecee956121d663635b873ae87ad9c5d3f2d6788facfd12829140b39c897" dependencies = [ "bitflags 2.13.1", "gix-commitgraph", @@ -2952,17 +2950,31 @@ dependencies = [ ] [[package]] -name = "gix-object" -version = "0.63.0" +name = "gix-note" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e48c235e7f886eb819fc878af75be889333dd3c38bee02ed7af48ae2cf596c4" +checksum = "9af6bbdb3f3c62b4920407c479af1cc0beb27fd75a762782d48baed53d330958" +dependencies = [ + "gix-error", + "gix-hash", + "gix-hashtable", + "gix-object", +] + +[[package]] +name = "gix-object" +version = "0.64.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56fef799ca40cdeab4de5a3e74a696d8fa9b9c6264592646bf022e026f13ce2c" dependencies = [ "bstr", "gix-actor", + "gix-command", "gix-date", "gix-features", "gix-hash", "gix-hashtable", + "gix-tempfile", "gix-utils", "gix-validate", "itoa", @@ -2972,9 +2984,9 @@ dependencies = [ [[package]] name = "gix-odb" -version = "0.83.0" +version = "0.84.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dd494ffb5037e62b8220109e894d2861ff2150a2cacbfccdba57ae1ebab2b96" +checksum = "cf45d195b71cb6363886e7b466821bf4dffd7aba1b6b814ff75488e0061d72a7" dependencies = [ "arc-swap", "gix-features", @@ -2994,9 +3006,9 @@ dependencies = [ [[package]] name = "gix-pack" -version = "0.73.0" +version = "0.74.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d5446127b269706e85998065267ddd2ccc3550179da6780b22fe496175ccb20" +checksum = "3d199d515cbdcf05f531f3859be9771fc12acac7b7fe0f5b581b2c1ab1c3a61e" dependencies = [ "clru", "gix-chunk", @@ -3040,9 +3052,9 @@ dependencies = [ [[package]] name = "gix-pathspec" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f6fa5f8007f008187c3f60b4373209ca83d1cc947f35ede03e16cd15a4d137" +checksum = "c92e44c63ba53bb55aa88ee48847664beae9446417621582fb14dfc69b2f8c72" dependencies = [ "bitflags 2.13.1", "bstr", @@ -3055,9 +3067,9 @@ dependencies = [ [[package]] name = "gix-prompt" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cb1f1eb92d6f4c9d4c105a6ca912cff637fbd5cacbcbafa5deccd88bfaa3565" +checksum = "802256e13ecb2133ba5f9e6acbaa6b08bac027b1c5929f85f6adbb56ba3a4f28" dependencies = [ "gix-command", "gix-config-value", @@ -3068,17 +3080,17 @@ dependencies = [ [[package]] name = "gix-protocol" -version = "0.64.0" +version = "0.65.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dede40e89c1e90f548415f50636bb051f6d9c60f68b8b710bc07825722d19588" +checksum = "68878c37ae168b474c762d70adc8a8e0f9323ed0d80444a672e2eb561fa16691" dependencies = [ - "bisync", "bstr", "gix-credentials", "gix-date", "gix-features", "gix-hash", "gix-lock", + "gix-macros", "gix-negotiate", "gix-object", "gix-ref", @@ -3094,9 +3106,9 @@ dependencies = [ [[package]] name = "gix-quote" -version = "0.7.2" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6e541fc33cc2b783b7979040d445a0c86a2eca747c8faea4ca84230d06ae6ef" +checksum = "f74795eb76eab8313063849f9cbd2bbcdc6e4692f71c1d7d0244ab11cd777329" dependencies = [ "bstr", "gix-error", @@ -3105,9 +3117,9 @@ dependencies = [ [[package]] name = "gix-ref" -version = "0.66.0" +version = "0.67.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeb0c90a8f6202ceaaa22996cbf837c943ccb2d8af9ff3490f0758305e6b7883" +checksum = "8328387e7ab354e1dc3afb63e6b4d1866f82d7ce035222bc9d5baaf36bc88020" dependencies = [ "gix-actor", "gix-features", @@ -3125,15 +3137,12 @@ dependencies = [ [[package]] name = "gix-refspec" -version = "0.44.0" +version = "0.45.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7406282cc0259b51f6aee299ca3d31279a020530363152a2e6c96e8a7f7bbc83" +checksum = "7de280d46e8fd9e4d3e7e2ab4276b965e377ba68b2b9a8fce56371015e8bb059" dependencies = [ "bstr", - "gix-error", - "gix-glob", "gix-hash", - "gix-revision", "gix-validate", "smallvec", "thiserror 2.0.20", @@ -3141,9 +3150,9 @@ dependencies = [ [[package]] name = "gix-revision" -version = "0.48.0" +version = "0.49.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e55e09d4a1ecf2beecc8c09cafcad37979e805b31f588b0e957e191df5783681" +checksum = "4577b864c3e134697e91564553e43230c2e401bb1bcc51cfa998edca21c95078" dependencies = [ "bitflags 2.13.1", "bstr", @@ -3160,9 +3169,9 @@ dependencies = [ [[package]] name = "gix-revwalk" -version = "0.34.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36c113c0a53294dc6280ffc06cbcc4f50f820397e97d6a00b429a44b8db26e29" +checksum = "248823eefe405e2c0754b74f6f43ab6faab68670cdbf2d6e114cb0471f766450" dependencies = [ "gix-commitgraph", "gix-date", @@ -3201,9 +3210,9 @@ dependencies = [ [[package]] name = "gix-submodule" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd98077a56d08886112e6b08dc94076d03539f4bc0b9d7880e4be2b8a640d8c" +checksum = "da85564d6725c483b8d95d7b31d1db0b78c29e462a2b481949e2f18e1ed55a6a" dependencies = [ "bstr", "gix-config", @@ -3235,9 +3244,9 @@ checksum = "be3eb81d9dc914335923e50d52829c551feefd6a72d176c4130c546b67a60814" [[package]] name = "gix-transport" -version = "0.58.1" +version = "0.59.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f36d045b840f8aeee1a527e677eab1fbebfbbe94bf2e708fa81d0b4b742d5fc" +checksum = "b1295b6ada647b5b4ac6eb123d95a82ee80aef11a7d9db6ea9cb38dcbd411362" dependencies = [ "base64", "bstr", @@ -3256,9 +3265,9 @@ dependencies = [ [[package]] name = "gix-traverse" -version = "0.60.0" +version = "0.61.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "008c5cd879e46e86b5c2469e633611978b18775d53d05668d691bc13088bd409" +checksum = "9af3503668739f4de5dba57fe15cfd9adc443b08bcbbf195e5de16b648872245" dependencies = [ "bitflags 2.13.1", "gix-commitgraph", @@ -3273,9 +3282,9 @@ dependencies = [ [[package]] name = "gix-url" -version = "0.37.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31bdfc93aa880cda3272718a5879ce3aa7723fa13514320dd6608151607afe72" +checksum = "5bda80ccb4bc81fb9fb07a975916eb0c7a889bcbcb0c8a239c3f82a9cc2abdda" dependencies = [ "bstr", "gix-path", @@ -3307,9 +3316,9 @@ dependencies = [ [[package]] name = "gix-worktree" -version = "0.55.0" +version = "0.56.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31eb8e675122e83585e461fe28f68ff8c5ed55b49017b697e7e76423ff973424" +checksum = "3ed36b627476e2072c129900a17c977a38052b5497e27308159bc881fbf4eecf" dependencies = [ "bstr", "gix-attributes", @@ -3325,9 +3334,9 @@ dependencies = [ [[package]] name = "gix-worktree-state" -version = "0.33.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc47372fc12b9fbea51b257bcc8d4970326cf5c7e42135bbfb5d72871bb30bd4" +checksum = "4c14faa5b9527823c656a033e841dde11ca5b774f1bca7a9cdc23db677e55d56" dependencies = [ "bstr", "gix-features", @@ -3343,9 +3352,9 @@ dependencies = [ [[package]] name = "gix-worktree-stream" -version = "0.35.0" +version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b088c8724e7be120c4798dd86925cf05332c9d356a463542578600c50c7a549" +checksum = "de5ec0ccbab39c9994656ea031ded8ffd90b370a3cc8e360fbe3c4ebe7c64964" dependencies = [ "gix-attributes", "gix-error", diff --git a/Cargo.toml b/Cargo.toml index 12b3c04..2d17f53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ nostr-gossip-memory = { git = "https://github.com/rust-nostr/nostr" } nostr-connect = { git = "https://github.com/rust-nostr/nostr" } nostr-sdk = { git = "https://github.com/rust-nostr/nostr" } -gix = { version = "0.86", default-features = false, features = ["sha1", "blocking-network-client", "blocking-http-transport-reqwest-rust-tls", "worktree-mutation"] } +gix = { version = "0.87.1", default-features = false, features = ["sha1", "blocking-network-client", "blocking-http-transport-reqwest-rust-tls", "worktree-mutation"] } chrono = { version = "0.4.38", features = ["wasmbind"] } smol = "2" diff --git a/crates/assets/assets/themes/signed.json b/crates/assets/assets/themes/signed.json new file mode 100644 index 0000000..3c10784 --- /dev/null +++ b/crates/assets/assets/themes/signed.json @@ -0,0 +1,433 @@ +{ + "$schema": "https://github.com/longbridge/gpui-component/raw/refs/heads/main/.theme-schema.json", + "name": "Signed", + "author": "Signed", + "themes": [ + { + "is_default": true, + "name": "Signed Light", + "mode": "light", + "colors": { + "accent.background": "#F0F0F0", + "accent.foreground": "#202020", + "accordion.background": "#FFFFFF", + "background": "#FFFFFF", + "border": "#E4E4E7", + "caret": "#202020", + "chart.1": "#93C5FD", + "chart.2": "#3B82F6", + "chart.3": "#2563EB", + "chart.4": "#1D4ED8", + "chart.5": "#1E40AF", + "chart_bullish": "green-600", + "chart_bearish": "red-600", + "danger.background": "red-500", + "danger.foreground": "neutral-50", + "description_list.label.foreground": "#202020", + "drag.border": "#65A30D", + "drop_target.background": "#C6FF4D40", + "foreground": "#18181B", + "group_box.background": "#F0F0F0", + "group_box.foreground": "#202020", + "info.background": "cyan-500", + "info.foreground": "neutral-50", + "input.border": "#E4E4E7", + "link": "#3F6212", + "link.active": "#3F6212", + "link.hover": "#65A30D", + "list.background": "#FFFFFF", + "list.active.background": "#C6FF4D33", + "list.active.border": "#65A30D", + "list.even.background": "#F9F9F9", + "list.head.background": "#F9F9F9", + "list.hover.background": "#F0F0F0", + "muted.background": "#F9F9F9", + "muted.foreground": "#646464", + "overlay": "#0000000D", + "popover.background": "#FFFFFF", + "popover.foreground": "#18181B", + "primary.background": "#C6FF4D", + "primary.active.background": "#65A30D", + "primary.active.foreground": "#F7FEE7", + "primary.foreground": "#1A2E05", + "primary.hover.background": "#B7F03E", + "progress.bar.background": "#18181B", + "ring": "#BBBBBB", + "scrollbar.background": "#F9F9F900", + "scrollbar.thumb.background": "#BBBBBBE6", + "scrollbar.thumb.hover.background": "#BBBBBB", + "secondary.background": "#F0F0F0", + "secondary.active.background": "#E0E0E0", + "secondary.foreground": "#202020", + "secondary.hover.background": "#E8E8E8", + "selection.background": "#55A0FC", + "sidebar.background": "#F9F9F9", + "sidebar.accent.background": "#F0F0F0", + "sidebar.accent.foreground": "#202020", + "sidebar.border": "#E8E8E8", + "sidebar.foreground": "#202020", + "sidebar.primary.background": "#C6FF4D", + "sidebar.primary.foreground": "#1A2E05", + "skeleton.background": "#F0F0F0", + "slider.background": "#18181B", + "slider.thumb.background": "#FFFFFF", + "status_bar.background": "#F9F9F9", + "status_bar.border": "#E8E8E8", + "success.background": "#2FBF71", + "success.foreground": "#052E16", + "switch.background": "#CECECE", + "switch.thumb.background": "#FFFFFF", + "tab.background": "#00000000", + "tab.active.background": "#EBFFC1", + "tab.active.foreground": "#3F6212", + "tab.foreground": "#646464", + "tab_bar.background": "#F0F0F0", + "tab_bar.segmented.background": "#F0F0F0", + "table.background": "#FFFFFF", + "table.active.background": "#C6FF4D33", + "table.active.border": "#65A30D", + "table.even.background": "#F9F9F9", + "table.head.background": "#F9F9F9", + "table.head.foreground": "#838383", + "table.hover.background": "#F0F0F0", + "table.row.border": "#E8E8E8B3", + "tiles.background": "#F9F9F9", + "title_bar.background": "#F9F9F9", + "title_bar.border": "#E8E8E8", + "warning.background": "yellow-500", + "warning.foreground": "neutral-50", + "window.border": "#E8E8E8", + "base.red": "red-600", + "base.red.light": "red-400", + "base.green": "#16A34A", + "base.green.light": "green-400", + "base.blue": "blue-600", + "base.blue.light": "blue-400", + "base.yellow": "yellow-600", + "base.yellow.light": "yellow-400", + "base.magenta": "purple-600", + "base.magenta.light": "purple-400", + "base.cyan": "cyan-600", + "base.cyan.light": "cyan-400" + }, + "highlight": { + "editor.foreground": "#000000", + "editor.background": "#ffffff", + "editor.active_line.background": "#F5F5F5", + "editor.line_number": "#929292", + "editor.active_line_number": "#000000", + "editor.invisible": "#73737366", + "conflict": "#C5060B", + "created": "#1642FF", + "hidden": "#6D6D6D", + "hint": "#9e5dff", + "modified": "#9e7008", + "predictive": "#A4ABB6", + "warning": "#C99401", + "syntax": { + "attribute": { + "color": "#957931" + }, + "boolean": { + "color": "#C5060B" + }, + "comment": { + "color": "#007fff" + }, + "comment.doc": { + "color": "#007fff" + }, + "constant": { + "color": "#C5060B" + }, + "constructor": { + "color": "#0433ff" + }, + "embedded": { + "color": "#333333" + }, + "emphasis": { + "font_style": "italic" + }, + "emphasis.strong": { + "font_weight": 700 + }, + "function": { + "color": "#0000A2" + }, + "keyword": { + "color": "#0433ff" + }, + "link_text": { + "color": "#0000A2", + "font_style": "normal" + }, + "link_uri": { + "color": "#6A7293", + "font_style": "italic" + }, + "number": { + "color": "#0433ff" + }, + "string": { + "color": "#036A07" + }, + "string.escape": { + "color": "#036A07" + }, + "string.regex": { + "color": "#036A07" + }, + "string.special": { + "color": "#d21f07" + }, + "string.special.symbol": { + "color": "#d21f07" + }, + "tag": { + "color": "#0433ff" + }, + "text.literal": { + "color": "#6F42C1" + }, + "text.code.span": { + "color": "#6F42C1" + }, + "title": { + "color": "#0433FF" + }, + "type": { + "color": "#6f42c1" + }, + "property": { + "color": "#333333" + }, + "variable": { + "color": "#333333" + }, + "variable.special": { + "color": "#C5060B" + } + } + } + }, + { + "is_default": true, + "name": "Signed Dark", + "mode": "dark", + "colors": { + "accent.background": "#222222", + "accent.foreground": "#EEEEEE", + "accordion.background": "#0A0A0A", + "background": "#0A0A0A", + "border": "#27272A", + "caret": "#EEEEEE", + "chart.1": "#93C5FD", + "chart.2": "#3B82F6", + "chart.3": "#2563EB", + "chart.4": "#1D4ED8", + "chart.5": "#1E40AF", + "chart_bullish": "green-600", + "chart_bearish": "red-600", + "danger.background": "red-400", + "danger.foreground": "red-600", + "description_list.label.background": "#191919", + "description_list.label.foreground": "#EEEEEE", + "drag.border": "#C6FF4D", + "drop_target.background": "#C6FF4D2E", + "foreground": "#FAFAFA", + "group_box.background": "#191919", + "group_box.foreground": "#EEEEEE", + "info.background": "cyan-400", + "info.foreground": "cyan-600", + "input.border": "#2F2F2F", + "link": "#A3E635", + "link.active": "#A3E635", + "link.hover": "#C6FF4D", + "list.background": "#0A0A0A", + "list.active.background": "#C6FF4D33", + "list.active.border": "#C6FF4D", + "list.even.background": "#191919", + "list.head.background": "#191919", + "list.hover.background": "#222222", + "muted.background": "#191919", + "muted.foreground": "#B4B4B4", + "overlay": "#00000033", + "popover.background": "#0A0A0A", + "popover.foreground": "#FAFAFA", + "primary.background": "#C6FF4D", + "primary.active.background": "#65A30D", + "primary.active.foreground": "#F7FEE7", + "primary.foreground": "#1A2E05", + "primary.hover.background": "#D6FF7A", + "progress.bar.background": "#FAFAFA", + "ring": "#606060", + "scrollbar.background": "#19191900", + "scrollbar.thumb.background": "#606060E6", + "scrollbar.thumb.hover.background": "#606060", + "secondary.background": "#222222", + "secondary.active.background": "#313131", + "secondary.foreground": "#EEEEEE", + "secondary.hover.background": "#2A2A2A", + "selection.background": "#1D4ED8", + "sidebar.background": "#111111", + "sidebar.accent.background": "#222222", + "sidebar.accent.foreground": "#EEEEEE", + "sidebar.border": "#2A2A2A", + "sidebar.foreground": "#EEEEEE", + "sidebar.primary.background": "#C6FF4D", + "sidebar.primary.foreground": "#1A2E05", + "skeleton.background": "#222222", + "slider.background": "#FAFAFA", + "slider.thumb.background": "#0A0A0A", + "status_bar.background": "#191919", + "status_bar.border": "#2A2A2A", + "success.background": "#2FBF71", + "success.foreground": "#052E16", + "switch.background": "#484848", + "switch.thumb.background": "#0A0A0A", + "tab.background": "#00000000", + "tab.active.background": "#19200A", + "tab.active.foreground": "#C6FF4D", + "tab.foreground": "#B4B4B4", + "tab_bar.background": "#191919", + "tab_bar.segmented.background": "#191919", + "table.background": "#0A0A0A", + "table.active.background": "#C6FF4D33", + "table.active.border": "#C6FF4D", + "table.even.background": "#191919", + "table.head.background": "#191919", + "table.head.foreground": "#7B7B7B", + "table.hover.background": "#222222", + "table.row.border": "#2A2A2AB3", + "tiles.background": "#191919", + "title_bar.background": "#191919", + "title_bar.border": "#2A2A2A", + "warning.background": "yellow-400", + "warning.foreground": "yellow-600", + "window.border": "#2A2A2A", + "base.red": "red-400", + "base.red.light": "red-300", + "base.green": "#22C55E", + "base.green.light": "green-300", + "base.blue": "blue-400", + "base.blue.light": "blue-300", + "base.yellow": "yellow-400", + "base.yellow.light": "yellow-300", + "base.magenta": "purple-400", + "base.magenta.light": "purple-300", + "base.cyan": "cyan-400", + "base.cyan.light": "cyan-300" + }, + "highlight": { + "editor.foreground": "#CACCCA", + "editor.background": "#0a0a0a", + "editor.active_line.background": "#171717", + "editor.line_number": "#8F8F8F", + "editor.active_line_number": "#DDDDDD", + "editor.invisible": "#73737366", + "conflict": "#D2602D", + "created": "#3f72e2", + "created.background": "#0C4619", + "deleted.background": "#46190C", + "error.background": "#46190C", + "error.border": "#E44A4F", + "hidden": "#9E9E9E", + "hint": "#b283f8", + "hint.background": "#250c4b", + "hint.border": "#3f0891", + "info.background": "#0059D1", + "info.border": "#0059D1", + "modified": "#B0A878", + "modified.background": "#3A310E", + "predictive": "#5D5945", + "success.background": "#0C4619", + "warning.background": "#3A310E", + "warning.border": "#7B6508", + "syntax": { + "attribute": { + "color": "#7FAEF9" + }, + "boolean": { + "color": "#CC9E00" + }, + "comment": { + "color": "#9D9D9D" + }, + "comment.doc": { + "color": "#9D9D9D" + }, + "constant": { + "color": "#CC9E00" + }, + "constructor": { + "color": "#CBA6F7" + }, + "embedded": { + "color": "#CACCCA" + }, + "emphasis": { + "font_style": "italic" + }, + "emphasis.strong": { + "font_weight": 700 + }, + "function": { + "color": "#B3C5F3" + }, + "keyword": { + "color": "#87B1F6" + }, + "link_text": { + "color": "#419CFF", + "font_style": "normal" + }, + "link_uri": { + "color": "#7faef9", + "font_style": "italic" + }, + "number": { + "color": "#CC9E00" + }, + "string": { + "color": "#A3E09F" + }, + "string.escape": { + "color": "#68DC7C" + }, + "string.regex": { + "color": "#68DC7C" + }, + "string.special": { + "color": "#A3E09F" + }, + "string.special.symbol": { + "color": "#A3E09F" + }, + "tag": { + "color": "#419CFF" + }, + "text.literal": { + "color": "#A3E09F" + }, + "text.code.span": { + "color": "#A3E09F" + }, + "title": { + "color": "#CC9E00", + "font_weight": 600 + }, + "type": { + "color": "#CBA6F7" + }, + "property": { + "color": "#BCC4E0" + }, + "variable.special": { + "color": "#419CFF" + } + } + } + } + ] +} diff --git a/desktop/src/main.rs b/desktop/src/main.rs index 137fb1e..9ee7edf 100644 --- a/desktop/src/main.rs +++ b/desktop/src/main.rs @@ -31,22 +31,26 @@ fn main() { tracing::error!("Failed to load theme {name}: {err}"); } } + let light_theme = registry.themes().get("Signed Light").cloned(); + let dark_theme = registry.themes().get("Signed Dark").cloned(); - //let light_theme = registry.themes().get("Signed Light").cloned(); - //let dark_theme = registry.themes().get("Signed Dark").cloned(); let theme = Theme::global_mut(cx); theme.radius = px(2.); theme.radius_lg = px(6.); theme.focus_ring = false; theme.shadow = false; - //if let Some(light) = light_theme { - // theme.light_theme = light; - //} + if let Some(light) = light_theme { + theme.light_theme = light; + } else { + tracing::warn!("Signed Light theme is missing from the registry"); + } - //if let Some(dark) = dark_theme { - // theme.dark_theme = dark; - //} + if let Some(dark) = dark_theme { + theme.dark_theme = dark; + } else { + tracing::warn!("Signed Dark theme is missing from the registry"); + } // Sync the theme with the system appearance Theme::sync_system_appearance(None, cx);