Skip to content

Commit

Permalink
splash: adjust padding some more
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Oct 31, 2023
1 parent f4a4c30 commit 6b7b172
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ icons: icons/roblox-player.svg icons/roblox-studio.svg
convert -density 384 -background none $^ -resize 48x48 -set filename:f '%w/%t' 'icons/%[filename:f].png'
convert -density 384 -background none $^ -resize 64x64 -set filename:f '%w/%t' 'icons/%[filename:f].png'
convert -density 384 -background none $^ -resize 128x128 -set filename:f '%w/%t' 'icons/%[filename:f].png'
convert -density 384 -background none icons/vinegar.svg -resize 48x48 internal/splash/vinegar.png
convert -density 384 -background none icons/vinegar.svg -resize 64x64 splash/vinegar.png

mime:
xdg-mime default $(FLATPAK).player.desktop x-scheme-handler/roblox-player
Expand Down
11 changes: 8 additions & 3 deletions splash/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (s Style) Size() (w, h unit.Dp) {
switch s {
case Compact:
w = unit.Dp(448)
h = unit.Dp(150)
h = unit.Dp(156) // 118, 0
case Familiar:
w = unit.Dp(480)
h = unit.Dp(246) // 198
Expand All @@ -33,7 +33,12 @@ func (s Style) Size() (w, h unit.Dp) {
}

func (ui *Splash) drawCompact(gtx C) D {
return layout.UniformInset(16).Layout(gtx, func(gtx C) D {
return layout.Inset{
Top: unit.Dp(18),
Bottom: unit.Dp(18),
Left: unit.Dp(12),
Right: unit.Dp(18),
}.Layout(gtx, func(gtx C) D {
return layout.Flex{
Axis: layout.Vertical,
}.Layout(gtx,
Expand Down Expand Up @@ -63,7 +68,7 @@ func (ui *Splash) drawCompact(gtx C) D {
}),
)
}),
layout.Rigid(layout.Spacer{Height: unit.Dp(16)}.Layout),
layout.Rigid(layout.Spacer{Height: unit.Dp(18)}.Layout),
layout.Rigid(func(gtx C) D {
return ui.buttons(gtx, layout.SpaceStart)
}),
Expand Down
Binary file modified splash/vinegar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b7b172

Please sign in to comment.