prettier and eslint ignore valid syntax for qml specific syntax. Clippy lint resolved in .rs. unused py files commented to be ignored by ruff
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
scripts/fzf.js
|
||||
scripts/fuzzysort.js
|
||||
@@ -1,11 +1,13 @@
|
||||
import json
|
||||
import typer
|
||||
from zshell.assets.schemes.catppuccin import catppuccin
|
||||
# import json
|
||||
# import typer
|
||||
# from zshell.assets.schemes.catppuccin import catppuccin
|
||||
#
|
||||
# app = typer.Typer()
|
||||
#
|
||||
# SCHEMES = catppuccin.variants.flavors
|
||||
#
|
||||
#
|
||||
# @app.command()
|
||||
# def set():
|
||||
|
||||
app = typer.Typer()
|
||||
|
||||
SCHEMES = catppuccin.variants.flavors
|
||||
|
||||
|
||||
@app.command()
|
||||
def set():
|
||||
# TODO: Currently unsused
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
import typer
|
||||
import subprocess
|
||||
# import typer
|
||||
# import subprocess
|
||||
#
|
||||
# from typing import Optional
|
||||
#
|
||||
# app = typer.Typer()
|
||||
#
|
||||
# RECORDER = "gpu-screen-recorder"
|
||||
# HOME = str(os.getenv("HOME"))
|
||||
# CONFIG = Path(HOME + "/.config/zshell/config.json")
|
||||
#
|
||||
#
|
||||
# @app.command()
|
||||
# def start():
|
||||
|
||||
from typing import Optional
|
||||
|
||||
app = typer.Typer()
|
||||
|
||||
RECORDER = "gpu-screen-recorder"
|
||||
HOME = str(os.getenv("HOME"))
|
||||
CONFIG = Path(HOME + "/.config/zshell/config.json")
|
||||
|
||||
|
||||
@app.command()
|
||||
def start():
|
||||
# TODO: Currently unused
|
||||
|
||||
+7
-5
@@ -1,14 +1,16 @@
|
||||
export default [
|
||||
{
|
||||
ignores: ["scripts/fzf.js", "scripts/fuzzysort.js"],
|
||||
},
|
||||
{
|
||||
files: ["**/*.{js,jsx,ts,tsx,mjs,cjs}"],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2021,
|
||||
sourceType: "module"
|
||||
sourceType: "module",
|
||||
},
|
||||
linterOptions: {
|
||||
reportUnusedDisableDirectives: true
|
||||
reportUnusedDisableDirectives: true,
|
||||
},
|
||||
rules: {},
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -39,8 +39,10 @@ pub fn apply_rounded_corners(img: RgbaImage, radius: f32) -> RgbaImage {
|
||||
);
|
||||
|
||||
let mut pixmap = rgba_image_to_pixmap(&img);
|
||||
let mut dst_paint = PixmapPaint::default();
|
||||
dst_paint.blend_mode = BlendMode::DestinationIn;
|
||||
let dst_paint = PixmapPaint {
|
||||
blend_mode: BlendMode::DestinationIn,
|
||||
..Default::default()
|
||||
};
|
||||
pixmap.draw_pixmap(0, 0, mask.as_ref(), &dst_paint, Transform::identity(), None);
|
||||
pixmap_to_rgba_image(pixmap)
|
||||
}
|
||||
@@ -69,8 +71,10 @@ pub fn apply_drop_shadow(
|
||||
let shadow_x = (extra_left as f32 + offset_x) as i32;
|
||||
let shadow_y = (extra_top as f32 + offset_y) as i32;
|
||||
|
||||
let mut sp = PixmapPaint::default();
|
||||
sp.blend_mode = BlendMode::Source;
|
||||
let sp = PixmapPaint {
|
||||
blend_mode: BlendMode::Source,
|
||||
..Default::default()
|
||||
};
|
||||
shadow_pixmap.draw_pixmap(
|
||||
shadow_x,
|
||||
shadow_y,
|
||||
@@ -87,8 +91,10 @@ pub fn apply_drop_shadow(
|
||||
let blurred_pixmap = rgba_image_to_pixmap(&blurred);
|
||||
|
||||
let mut canvas = Pixmap::new(canvas_w, canvas_h).expect("canvas pixmap");
|
||||
let mut p = PixmapPaint::default();
|
||||
p.blend_mode = BlendMode::Source;
|
||||
let p = PixmapPaint {
|
||||
blend_mode: BlendMode::Source,
|
||||
..Default::default()
|
||||
};
|
||||
canvas.draw_pixmap(
|
||||
0,
|
||||
0,
|
||||
@@ -98,8 +104,10 @@ pub fn apply_drop_shadow(
|
||||
None,
|
||||
);
|
||||
|
||||
let mut p2 = PixmapPaint::default();
|
||||
p2.blend_mode = BlendMode::SourceOver;
|
||||
let p2 = PixmapPaint {
|
||||
blend_mode: BlendMode::SourceOver,
|
||||
..Default::default()
|
||||
};
|
||||
canvas.draw_pixmap(
|
||||
extra_left as i32,
|
||||
extra_top as i32,
|
||||
|
||||
Reference in New Issue
Block a user