zed no rounded corners patch

This commit is contained in:
krizej 2024-09-17 20:01:58 +02:00
parent a3c38ed291
commit a8e522d86e
6 changed files with 34 additions and 4 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
.idea/ .idea/
*.swp

View file

@ -0,0 +1,23 @@
diff --git a/crates/gpui/src/platform/blade/shaders.wgsl b/crates/gpui/src/platform/blade/shaders.wgsl
index c3983c7acc..1a5689e635 100644
--- a/crates/gpui/src/platform/blade/shaders.wgsl
+++ b/crates/gpui/src/platform/blade/shaders.wgsl
@@ -163,7 +163,7 @@ fn blur_along_x(x: f32, y: f32, sigma: f32, corner: f32, half_size: vec2<f32>) -
}
fn pick_corner_radius(point: vec2<f32>, radii: Corners) -> f32 {
- if (point.x < 0.0) {
+ /* if (point.x < 0.0) {
if (point.y < 0.0) {
return radii.top_left;
} else {
@@ -175,7 +175,8 @@ fn pick_corner_radius(point: vec2<f32>, radii: Corners) -> f32 {
} else {
return radii.bottom_right;
}
- }
+ } */
+ return 0.0;
}
fn quad_sdf(point: vec2<f32>, bounds: Bounds, corner_radii: Corners) -> f32 {

View file

@ -44,7 +44,7 @@
qbittorrent qbittorrent
godot_4 godot_4
jetbrains.idea-community-bin jetbrains.idea-community-bin
inputs.zed.packages.${system}.zed-editor zed-editor
mumble mumble
]; ];

View file

@ -20,6 +20,7 @@
aseprite aseprite
cloc cloc
viu viu
zed-editor
]; ];
file = { file = {

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ...} @ args: let { lib, pkgs, config, ... } @ args: let
inherit (lib) mkOption types; inherit (lib) mkOption types;
cfg = config.chuj.system; cfg = config.chuj.system;
in { in {

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: with pkgs; [ { inputs, pkgs, ... }: with pkgs; [
(final: prevPkgs: { (final: prevPkgs: {
win7-cursors = callPackage ./win7-cursors.nix {}; win7-cursors = callPackage ./win7-cursors.nix {};
sddm-i3-theme = callPackage ./sddm-i3-theme.nix {}; sddm-i3-theme = callPackage ./sddm-i3-theme.nix {};
@ -29,5 +29,10 @@
sha256 = "sha256-t794WEMJx/JNX3gTMHfgquFWB7yXkleW07+QURm1NPM="; sha256 = "sha256-t794WEMJx/JNX3gTMHfgquFWB7yXkleW07+QURm1NPM=";
}; };
}); });
zed-editor = (inputs.zed.packages.${system}.zed-editor.overrideAttrs {
patches = [
../files/zed-no-rounded-corners.patch
];
});
}) })
] ]