set x86-64v3 as minimum supported arch. Make "free" badge not to stand out so much
This commit is contained in:
parent
7adde6d001
commit
a20a728d6d
4 changed files with 23 additions and 18 deletions
|
|
@ -1,2 +1,5 @@
|
|||
[target.x86_64-pc-windows-msvc]
|
||||
linker = "scripts/windows/msvc-linker.cmd"
|
||||
|
||||
[target.'cfg(target_arch = "x86_64")']
|
||||
rustflags = ["-Ctarget-cpu=x86-64-v3"]
|
||||
|
|
|
|||
24
Cargo.lock
generated
24
Cargo.lock
generated
|
|
@ -92,9 +92,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
|
|||
|
||||
[[package]]
|
||||
name = "anstream"
|
||||
version = "0.6.21"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
|
||||
checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
|
||||
dependencies = [
|
||||
"anstyle",
|
||||
"anstyle-parse",
|
||||
|
|
@ -113,9 +113,9 @@ checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
|
|||
|
||||
[[package]]
|
||||
name = "anstyle-parse"
|
||||
version = "0.2.7"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
|
||||
checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
|
||||
dependencies = [
|
||||
"utf8parse",
|
||||
]
|
||||
|
|
@ -965,9 +965,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "clap"
|
||||
version = "4.5.60"
|
||||
version = "4.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2797f34da339ce31042b27d23607e051786132987f595b02ba4f6a6dffb7030a"
|
||||
checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351"
|
||||
dependencies = [
|
||||
"clap_builder",
|
||||
"clap_derive",
|
||||
|
|
@ -975,9 +975,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "clap_builder"
|
||||
version = "4.5.60"
|
||||
version = "4.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "24a241312cea5059b13574bb9b3861cabf758b879c15190b37b6d6fd63ab6876"
|
||||
checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
|
||||
dependencies = [
|
||||
"anstream",
|
||||
"anstyle",
|
||||
|
|
@ -987,9 +987,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "clap_derive"
|
||||
version = "4.5.55"
|
||||
version = "4.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5"
|
||||
checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a"
|
||||
dependencies = [
|
||||
"heck 0.5.0",
|
||||
"proc-macro2",
|
||||
|
|
@ -999,9 +999,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "clap_lex"
|
||||
version = "1.0.0"
|
||||
version = "1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
|
||||
checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
|
||||
|
||||
[[package]]
|
||||
name = "clru"
|
||||
|
|
|
|||
|
|
@ -448,15 +448,15 @@ impl Render for TitleBarView {
|
|||
|
||||
let free_badge_bg = with_alpha(
|
||||
theme.colors.text_muted,
|
||||
if theme.is_dark { 0.38 } else { 0.26 },
|
||||
if theme.is_dark { 0.22 } else { 0.16 },
|
||||
);
|
||||
let free_badge_border = with_alpha(
|
||||
theme.colors.text_muted,
|
||||
if theme.is_dark { 0.62 } else { 0.48 },
|
||||
if theme.is_dark { 0.34 } else { 0.28 },
|
||||
);
|
||||
let free_badge_text = with_alpha(
|
||||
gpui::rgba(0xFFFFFFFF),
|
||||
if theme.is_dark { 0.86 } else { 0.78 },
|
||||
theme.colors.text,
|
||||
if theme.is_dark { 0.72 } else { 0.62 },
|
||||
);
|
||||
let free_badge = div()
|
||||
.id("free_badge")
|
||||
|
|
@ -498,9 +498,9 @@ impl Render for TitleBarView {
|
|||
.flex()
|
||||
.items_center()
|
||||
.gap_1()
|
||||
.child(free_badge)
|
||||
.when(!is_macos, |d| d.child(min).child(max).child(close))
|
||||
.pr_2()
|
||||
.child(free_badge),
|
||||
.pr_2(),
|
||||
)
|
||||
.into_any_element()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
use super::*;
|
||||
|
||||
#[cfg(any(test, target_os = "linux", target_os = "freebsd"))]
|
||||
fn desktop_entry_exec_path_arg(exe: &std::path::Path) -> Result<String, String> {
|
||||
let Some(exe) = exe.to_str() else {
|
||||
return Err(format!(
|
||||
|
|
@ -24,6 +25,7 @@ fn desktop_entry_exec_path_arg(exe: &std::path::Path) -> Result<String, String>
|
|||
Ok(escaped)
|
||||
}
|
||||
|
||||
#[cfg(any(test, target_os = "linux", target_os = "freebsd"))]
|
||||
fn should_auto_install_linux_desktop_integration(
|
||||
no_desktop_install_flag_present: bool,
|
||||
_xdg_current_desktop: Option<&str>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue