zed no rounded corners patch
This commit is contained in:
parent
a3c38ed291
commit
a8e522d86e
6 changed files with 34 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
.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
|
||||
godot_4
|
||||
jetbrains.idea-community-bin
|
||||
inputs.zed.packages.${system}.zed-editor
|
||||
zed-editor
|
||||
mumble
|
||||
];
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
aseprite
|
||||
cloc
|
||||
viu
|
||||
zed-editor
|
||||
];
|
||||
|
||||
file = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, config, ...} @ args: let
|
||||
{ lib, pkgs, config, ... } @ args: let
|
||||
inherit (lib) mkOption types;
|
||||
cfg = config.chuj.system;
|
||||
in {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: with pkgs; [
|
||||
{ inputs, pkgs, ... }: with pkgs; [
|
||||
(final: prevPkgs: {
|
||||
win7-cursors = callPackage ./win7-cursors.nix {};
|
||||
sddm-i3-theme = callPackage ./sddm-i3-theme.nix {};
|
||||
|
@ -29,5 +29,10 @@
|
|||
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