mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-10 02:21:33 -10:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7b3c2cedf |
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
||||
<mask id="cat">
|
||||
<rect width="24" height="24" fill="#fff"/>
|
||||
<g fill="#000">
|
||||
<path d="M7.1 11.2c0-2 .9-3.1 1.5-3.6-.3-1-.3-2.2.1-3.2 1.2 0 2.3.7 2.8 1.2.6-.2 1.2-.2 1.9-.2s1.3 0 1.9.2c.5-.5 1.6-1.2 2.8-1.2.4 1 .4 2.2.1 3.2.6.5 1.5 1.6 1.5 3.6 0 3.4-2.1 4.5-4.4 4.8.5.4.8 1.1.8 2.1V24H10.8v-3.1c-2.6.5-3.6-.9-4-1.9-.3-.6-.7-1.1-1.3-1.3-.4-.2-.4-.6.1-.6.9.1 1.5.8 1.9 1.5.6 1 1.6 1.3 3.3.9.1-.7.4-1.2.8-1.5-2.4-.3-4.5-1.4-4.5-4.8z"/>
|
||||
</g>
|
||||
</mask>
|
||||
<circle cx="12" cy="12" r="11" mask="url(#cat)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 605 B |
@@ -45,7 +45,8 @@ pub mod fonts {
|
||||
|
||||
/// The glass look's icons: Hugeicons' free set (MIT, `icons/glass/LICENSE-hugeicons.txt`), the
|
||||
/// ones the mockup uses, 24 unit outlines stroked 1.6 in `currentColor`, by Hugeicons' name
|
||||
/// (`"folder-01"`, `"more-vertical"`…).
|
||||
/// (`"folder-01"`, `"more-vertical"`…). `github` is GitHub's mark, drawn for Horizon (filled,
|
||||
/// its cat cut out by a mask), beside the links to GitHub Sponsors.
|
||||
pub mod glass_icons {
|
||||
macro_rules! icons {
|
||||
($($name:literal),* $(,)?) => {
|
||||
@@ -72,6 +73,7 @@ pub mod glass_icons {
|
||||
"favourite",
|
||||
"folder-01",
|
||||
"game-controller-01",
|
||||
"github",
|
||||
"globe-02",
|
||||
"image-01",
|
||||
"information-circle",
|
||||
|
||||
@@ -400,10 +400,10 @@ impl Launcher {
|
||||
_ => {}
|
||||
}
|
||||
|
||||
// Sculk's card (not in the mockup, kept: a sponsor), where the old sidebar had it: above
|
||||
// the links on every page but Servers, which shows the wide banner. Tall where the
|
||||
// sidebar has the height for it besides its rows, compact otherwise.
|
||||
if self.page != Page::Servers && !self.settings.partner_hidden {
|
||||
// Sculk's card (not in the mockup, kept: a sponsor), where the old sidebar had it: at
|
||||
// the sidebar's foot above the links, on every page (Servers shows the wide banner too).
|
||||
// Tall where the sidebar has the height for it besides its rows, compact otherwise.
|
||||
if !self.settings.partner_hidden {
|
||||
let rows = self.instances.list.len() + servers.len();
|
||||
let free = f32::from(window.viewport_size().height)
|
||||
- 2. * MARGIN
|
||||
|
||||
@@ -32,7 +32,7 @@ impl Launcher {
|
||||
))),
|
||||
)
|
||||
.child(
|
||||
ui::quiet("sponsor", tr("Sponsor on GitHub"), 36., &t)
|
||||
ui::quiet_icon("sponsor", Some("github"), tr("Sponsor on GitHub"), 36., &t)
|
||||
.on_click(move |_: &ClickEvent, _, cx| cx.open_url(&url)),
|
||||
)
|
||||
});
|
||||
|
||||
@@ -66,10 +66,13 @@ impl Launcher {
|
||||
.child(main.flex_1().min_w_0())
|
||||
.child(side),
|
||||
);
|
||||
// Sculk's banner right under the server, where it is seen without scrolling past the
|
||||
// server's tabs (as before the glass look, under the page's actions).
|
||||
page = page.children(self.glass_sculk(cx));
|
||||
if let Some(dir) = &open {
|
||||
page = page.child(self.glass_server_tabs(dir, &status, cx));
|
||||
}
|
||||
page.children(self.glass_sculk(cx))
|
||||
page
|
||||
}
|
||||
|
||||
/// The open server's glass: its state, name and numbers, its buttons, then its console.
|
||||
|
||||
@@ -203,10 +203,8 @@ pub fn card(id: &'static str, width: f32, compact: bool, t: &Theme) -> Stateful<
|
||||
.flex_none()
|
||||
.w(px(width))
|
||||
.bg(rgb(CARD))
|
||||
.border_1()
|
||||
.border_color(rgba(CYAN, 0.22))
|
||||
.rounded(px(10.))
|
||||
.group_hover(id, |s| s.top(px(-2.)).border_color(rgba(CYAN, 0.5)));
|
||||
.group_hover(id, |s| s.top(px(-2.)));
|
||||
let logo = |height: f32| {
|
||||
img(LOGO.clone())
|
||||
.flex_none()
|
||||
|
||||
Reference in new issue
Block a user