Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change the icon, recolor and reposition it #7053

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ SPDX-License-Identifier = "LicenseRef-qskinny"
path = [
"tools/lsp/ui/assets/chevron-down.svg",
"tools/lsp/ui/assets/inspect.svg",
"tools/lsp/ui/assets/search.svg",
szecket marked this conversation as resolved.
Show resolved Hide resolved
"tools/lsp/ui/assets/filter.svg",
"tools/lsp/ui/assets/layout-sidebar**.svg",
"tools/lsp/ui/assets/search.svg",
"tools/lsp/ui/assets/sync.svg",
Expand Down
1 change: 1 addition & 0 deletions tools/lsp/ui/assets/filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions tools/lsp/ui/components/selection-popup.slint
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ component PopupInner inherits Rectangle {

Rectangle {
Image {
source: Icons.search;
colorize: Palette.foreground;
width: EditorSizeSettings.default-icon-width;
height: EditorSizeSettings.default-icon-width;
source: Icons.filter;
colorize: Palette.alternate-foreground;
width: EditorSizeSettings.default-icon-width * 0.8;
height: EditorSizeSettings.default-icon-width * 0.8;
y: filter-edit.height / 2 - self.height / 2;
szecket marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down
31 changes: 8 additions & 23 deletions tools/lsp/ui/components/styling.slint
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export global Icons {
out property <image> chevron-down: @image-url("../assets/chevron-down.svg");
out property <image> inspect: @image-url("../assets/inspect.svg");
out property <image> search: @image-url("../assets/search.svg");
out property <image> filter: @image-url("../assets/filter.svg");
out property <image> sidebar-left-off: @image-url("../assets/layout-sidebar-left-off.svg");
out property <image> sidebar-right-off: @image-url("../assets/layout-sidebar-right-off.svg");
out property <image> sidebar-left: @image-url("../assets/layout-sidebar-left.svg");
Expand All @@ -25,30 +26,14 @@ export global EditorFontSettings {
out property <int> regular-font-weight: 400;
out property <int> semibold-font-weight: 700;
out property <int> bold-font-weight: 900;

out property <TextStyle> header: {
font-size: 18 * 0.0769rem,
font-weight: root.semibold-font-weight
};

out property <TextStyle> body: {
font-size: 14 * 0.0769rem,
font-weight: root.regular-font-weight
};
out property <TextStyle> label: {
font-size: 14 * 0.0769rem,
font-weight: root.regular-font-weight
};
out property <TextStyle> label-sub: {
font-size: 14 * 0.0769rem,
font-weight: root.light-font-weight
};
out property <TextStyle> header: { font-size: 18 * 0.0769rem, font-weight: root.semibold-font-weight };


out property <TextStyle> body-strong: {
font-size: 16 * 0.0769rem,
font-weight: root.bold-font-weight
};
out property <TextStyle> body: { font-size: 14 * 0.0769rem, font-weight: root.regular-font-weight };
out property <TextStyle> label: { font-size: 14 * 0.0769rem, font-weight: root.regular-font-weight };
out property <TextStyle> label-sub: { font-size: 14 * 0.0769rem, font-weight: root.light-font-weight };

out property <TextStyle> body-strong: { font-size: 16 * 0.0769rem, font-weight: root.bold-font-weight };
}

export global EditorSpaceSettings {
Expand All @@ -73,7 +58,7 @@ export global EditorSizeSettings {
}

export global EditorPalette {

property <bool> dark-color-scheme: Palette.color-scheme == ColorScheme.dark;

out property <brush> drop-mark-background: #00ff0080;
Expand Down
Loading