-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
174 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
toolbarview { | ||
&.undershoot-top scrolledwindow { | ||
overshoot.top { | ||
background: | ||
linear-gradient( | ||
to top, | ||
#{'alpha(@accent_color, 0)'} 80%, | ||
#{'alpha(@accent_color, 0.25)'} 100% | ||
), | ||
linear-gradient( | ||
#{'@borders'}, | ||
rgba(black, 0.05) 1px, | ||
rgba(black, 0.0) rem(3px) | ||
); | ||
} | ||
|
||
undershoot.top { | ||
background: | ||
linear-gradient( | ||
#{'@borders'}, | ||
rgba(black, 0.05) 1px, | ||
rgba(black, 0.0) rem(3px) | ||
); | ||
} | ||
} | ||
|
||
&.undershoot-bottom scrolledwindow { | ||
overshoot.bottom { | ||
background: | ||
linear-gradient( | ||
to bottom, | ||
#{'alpha(@accent_color, 0)'} 80%, | ||
#{'alpha(@accent_color, 0.25)'} 100% | ||
), | ||
linear-gradient( | ||
to top, | ||
#{'@borders'}, | ||
rgba(black, 0.05) 1px, | ||
rgba(black, 0.0) rem(3px) | ||
); | ||
} | ||
|
||
undershoot.bottom { | ||
background: | ||
linear-gradient( | ||
to top, | ||
#{'@borders'}, | ||
rgba(black, 0.05) 1px, | ||
rgba(black, 0.0) rem(3px) | ||
); | ||
} | ||
} | ||
|
||
headerbar, | ||
actionbar { | ||
background: inherit; | ||
box-shadow: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,71 @@ | ||
settingssidebar list { | ||
min-width: rem(200px); | ||
settingssidebar { | ||
list { | ||
background: inherit; | ||
min-width: rem(200px); | ||
|
||
row, | ||
> .title-4 { | ||
padding: rem(6px); | ||
} | ||
|
||
row { | ||
overlay { | ||
// IconSize.LARGE + padding | ||
min-width: calc(32px + #{rem(6px)}); | ||
row, | ||
> .title-4 { | ||
padding: rem(6px); | ||
} | ||
|
||
overlay:dir(ltr) { | ||
margin-right: rem(6px); | ||
row { | ||
overlay { | ||
// IconSize.LARGE + padding | ||
min-width: calc(32px + #{rem(6px)}); | ||
} | ||
|
||
overlay:dir(ltr) { | ||
margin-right: rem(6px); | ||
} | ||
|
||
overlay:dir(rtl) { | ||
margin-left: rem(6px); | ||
} | ||
} | ||
} | ||
|
||
toolbarview { | ||
revealer.bottom-bar { | ||
color: #{'mix(@text_color, @insensitive_bg_color, 0.15)'}; | ||
|
||
&.raised { | ||
box-shadow: 0 -1px #{'alpha(@highlight_color, 0.2)'}; | ||
background-color: rgba(black, 0.01); | ||
background-image: | ||
linear-gradient( | ||
to bottom, | ||
#{'@borders'} 1px, | ||
rgba(black, 0.07) 1px, | ||
transparent rem(3px) | ||
); | ||
} | ||
|
||
&.raised.border { | ||
background: rgba(black, 0.03); | ||
box-shadow: | ||
0 -1px #{'@borders'}, | ||
inset 0 1px #{'alpha(@highlight_color, 0.3)'}; | ||
} | ||
|
||
actionbar { | ||
padding: rem(6px); | ||
|
||
box.start > label { | ||
margin: rem(6px); | ||
font-weight: 500; | ||
} | ||
|
||
box.end > switch { | ||
slider, | ||
trough { | ||
min-height: 1.5em; | ||
} | ||
|
||
overlay:dir(rtl) { | ||
margin-left: rem(6px); | ||
slider { | ||
min-width: 1.5em; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Authored by: Avi Romanoff <[email protected]> | ||
*/ | ||
|
||
public class Switchboard.CategoryView : Gtk.Box { | ||
public class Switchboard.CategoryView : Adw.NavigationPage { | ||
public Gee.ArrayList<SearchEntry?> plug_search_result { get; private set; } | ||
public string? plug_to_open { get; construct set; default = null; } | ||
|
||
|
@@ -83,9 +83,12 @@ public class Switchboard.CategoryView : Gtk.Box { | |
hscrollbar_policy = NEVER | ||
}; | ||
|
||
orientation = VERTICAL; | ||
append (headerbar); | ||
append (scrolled); | ||
var box = new Gtk.Box (VERTICAL, 0); | ||
box.append (headerbar); | ||
box.append (scrolled); | ||
|
||
child = box; | ||
title = _("All Settings"); | ||
|
||
load_default_plugs.begin (); | ||
|
||
|