From 603511fd7f58cca2c21e6c14dcdc57f345510dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Wed, 3 Mar 2021 10:31:17 +0100 Subject: [PATCH] GTK4: Customize tabs --- src/themes/Kali/sass/gtk4/_common-tweaks.scss | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/src/themes/Kali/sass/gtk4/_common-tweaks.scss b/src/themes/Kali/sass/gtk4/_common-tweaks.scss index ef56b040..3d01a08a 100644 --- a/src/themes/Kali/sass/gtk4/_common-tweaks.scss +++ b/src/themes/Kali/sass/gtk4/_common-tweaks.scss @@ -69,3 +69,83 @@ headerbar { &:active, &:checked { @extend %button_active; } } } + +/************* + * Notebooks * + *************/ +notebook { + > header { + border: 0; + padding: 0; + background-color: $dark_fill; + + &.top, + &.bottom, + &.left, + &.right { + > tabs { + margin: 0; + + > tab, + > tab.reorderable-page { + border: 1px solid transparent; + margin: 3px; + transition: $button_transition; + + &:hover { + @include button(hover); + transition-duration: 50ms; + + &:backdrop { + @include button(undecorated); + } + } + + &:checked { + @include button(normal); + + &:backdrop { + @include button(backdrop); + transition: $backdrop_transition; + } + } + + &:backdrop { color: $backdrop_fg_color; } + } + } + } + + $gradient: + rgba(black, 0), + rgba(black, 0) calc(100% - 2px), + rgba(black, 0.05) calc(100% - 1px), + rgba(black, 0.15); + + &.top { + background-image: linear-gradient(to bottom, $gradient); + } + + &.bottom { + background-image: linear-gradient(to top, $gradient); + } + + &.right { + background-image: linear-gradient(to left, $gradient); + } + + &.left { + background-image: linear-gradient(to right, $gradient); + } + + tab { + border-radius: $button_radius; + transition: $button_transition; + min-height: 28px; + + button.flat { + margin-top: 1px; + margin-bottom: 1px; + } + } + } +}