Compare commits

...
Author SHA1 Message Date
Ludovic MarieandClaude Opus 5.5 b7b3c2cedf launcher: GitHub's mark on Sponsor on GitHub, Sculk's card on every page, no border
dezer-x's launcher feedback, points 12 and 13:
- Sponsor on GitHub carries GitHub's mark (github.svg in the glass icons, drawn for Horizon:
  filled, its cat cut out by a mask).
- Sculk's card stays at the sidebar's foot on every page, Servers too; its border is gone (it
  still lifts under the pointer).
- On Servers, Sculk's banner sits right under the server, where it shows without scrolling past
  the server's tabs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 11:09:00 +01:00
6 changed files with 22 additions and 10 deletions

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

+3 -1
View File
@@ -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",
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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)),
)
});
+4 -1
View File
@@ -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.
+1 -3
View File
@@ -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()