zed no rounded corners patch
This commit is contained in:
parent
a3c38ed291
commit
a8e522d86e
6 changed files with 34 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.idea/
|
.idea/
|
||||||
|
*.swp
|
||||||
|
|
23
files/zed-no-rounded-corners.patch
Normal file
23
files/zed-no-rounded-corners.patch
Normal 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 {
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
aseprite
|
aseprite
|
||||||
cloc
|
cloc
|
||||||
viu
|
viu
|
||||||
|
zed-editor
|
||||||
];
|
];
|
||||||
|
|
||||||
file = {
|
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 {
|
||||||
|
|
|
@ -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
|
||||||
|
];
|
||||||
|
});
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue