summaryrefslogtreecommitdiff
path: root/lib/res/styles/partials/_launcher.scss
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-06-20 17:11:35 +0200
committerHannes Schulze <haschu0103@outlook.de>2025-06-20 17:11:35 +0200
commit75b5dde3a4d62acfc4f354b6dc237062cb83b89b (patch)
treea39283ff47a1a33a1a713e03a1e60b8efe80e03a /lib/res/styles/partials/_launcher.scss
parent519956797d905c0925b8dd418ceb17c7495ad30a (diff)
add resources
Diffstat (limited to 'lib/res/styles/partials/_launcher.scss')
-rw-r--r--lib/res/styles/partials/_launcher.scss67
1 files changed, 67 insertions, 0 deletions
diff --git a/lib/res/styles/partials/_launcher.scss b/lib/res/styles/partials/_launcher.scss
new file mode 100644
index 0000000..55d6bd0
--- /dev/null
+++ b/lib/res/styles/partials/_launcher.scss
@@ -0,0 +1,67 @@
+//
+// Styles for the launcher.
+//
+// The search icon and label should be aligned to the result item icons (at the center) and labels (at the start).
+//
+
+window.launcher {
+ background: $foobar-color-background-primary;
+ border: $foobar-dim-border-light solid $foobar-color-border;
+ border-radius: $foobar-dim-radius-large;
+
+ $search-icon-size: 24px;
+ $app-icon-size: 32px;
+ // How far the app icon needs to extend into the spacing around it.
+ $icon-overrun: ($app-icon-size - $search-icon-size) / 2;
+
+ & .search {
+ padding: $foobar-dim-margin-large-vertical $foobar-dim-margin-large-horizontal;
+
+ & image {
+ -gtk-icon-size: $search-icon-size;
+ margin-right: $foobar-dim-spacing-relaxed;
+ color: $foobar-color-foreground-secondary;
+ }
+
+ & placeholder {
+ color: $foobar-color-foreground-secondary;
+ }
+
+ & text {
+ font-size: $foobar-dim-font-large;
+ }
+ }
+
+ & row {
+ $inset: $foobar-dim-spacing-medium;
+
+ padding-left: $foobar-dim-margin-large-horizontal - $icon-overrun - $inset;
+ padding-right: $foobar-dim-margin-large-horizontal - $inset;
+ padding-top: $foobar-dim-margin-medium-vertical;
+ padding-bottom: $foobar-dim-margin-medium-vertical;
+ margin-top: $inset;
+ margin-left: $inset;
+ margin-right: $inset;
+ border-radius: $foobar-dim-radius-small;
+
+ &:last-child {
+ margin-bottom: $inset;
+ }
+
+ & .icon {
+ -gtk-icon-size: $app-icon-size;
+ margin-right: $foobar-dim-spacing-relaxed - $icon-overrun;
+ }
+
+ & .name {
+ font-size: $foobar-dim-font-small;
+ font-weight: bold;
+ }
+
+ & .description {
+ font-size: $foobar-dim-font-small;
+ margin-top: $foobar-dim-spacing-small;
+ color: $foobar-color-foreground-secondary;
+ }
+ }
+}