Commit 5c1a58b2 authored by pontaoski's avatar pontaoski 🌈
Browse files

[GTK3] Add styles for libhandy widgets

Summary:
There are now styles specifically for libhandy widgets to make them
better resemble Plasma's mobile widgets.

Test Plan:
Before:
Dialpad:
{F7629913}
Switcher:
{F7629917}

After:
Dialpad:
{F7629896}
Switcher:
{F7629901}

Reviewers: #breeze, #vdg, ndavis

Reviewed By: #breeze, #vdg, ndavis

Subscribers: ngraham, ndavis, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24786
parent 91c16f28
......@@ -33,5 +33,6 @@ $new-highlight: false;
@import "widgets/tooltips";
@import "widgets/treeview";
@import "widgets/window_decorations";
@import "widgets/libhandy";
@import "applications/chromium";
\ No newline at end of file
@charset "UTF-8";
hdydialer {
button {
font-weight: lighter;
background-color: transparent;
border: 0;
box-shadow: none;
&:backdrop {
background-color: transparent;
}
&:focus {
background-color: transparent;
border: none;
}
}
}
hdyviewswitcher {
> button {
border: 0;
background-color: transparent;
&:backdrop:hover, &:hover, &:active, &:hover:focus, &:active:focus, &:checked, &:checked:hover {
background-color: transparent;
}
&:checked, &:checked:backdrop {
border-top: 0;
border-left: 0;
border-right: 0;
background-color: transparent;
> stack {
border-bottom: 3px solid transparent;
border-top: 3px solid gtk("@theme_button_decoration_focus");
}
}
&.needs-attention > stack > box label {
animation: needs_attention 150ms ease-in;
background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(gtk("@theme_button_decoration_focus")), to(transparent));
background-size: 6px 6px, 6px 6px;
background-repeat: no-repeat;
background-position: right 0px, right 1px;
}
}
}
headerbar hdyviewswitcher > button:checked > stack {
&:backdrop {
border-top: 3px solid transparent;
border-bottom: 3px solid gtk("@theme_button_decoration_focus");
}
border-top: 3px solid transparent;
border-bottom: 3px solid gtk("@theme_button_decoration_focus");
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment