mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 14:53:49 +00:00
Tweak margins of game news and game events so that the top and right edges align nicely
This commit is contained in:
@@ -49,12 +49,12 @@ module W3DHubLauncher
|
|||||||
end
|
end
|
||||||
|
|
||||||
# game events and news container
|
# game events and news container
|
||||||
stack(fill: true, height: 1.0, margin_left: LARGE_PADDING, scroll: true) do
|
stack(fill: true, height: 1.0, margin_left: PADDING, scroll: true) do
|
||||||
@event_container = stack(width: 1.0, padding: PADDING, margin_left: HALF_PADDING, margin_right: HALF_PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: 0x88_26a269) do
|
@event_container = stack(width: 1.0, padding: PADDING, margin_left: PADDING, margin_bottom: PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: 0x88_26a269) do
|
||||||
end
|
end
|
||||||
|
|
||||||
# news container
|
# news container
|
||||||
@news_container = flow(width: 1.0, margin_top: PADDING) do
|
@news_container = flow(width: 1.0) do
|
||||||
end
|
end
|
||||||
|
|
||||||
# "dynamically" adjust news item widths
|
# "dynamically" adjust news item widths
|
||||||
@@ -240,7 +240,7 @@ module W3DHubLauncher
|
|||||||
|
|
||||||
@news_container.clear do
|
@news_container.clear do
|
||||||
app_news.each do |item|
|
app_news.each do |item|
|
||||||
stack(width: 1.0 / news_item_width_ratio, height: 345, aspect_ratio: 1, margin_left: HALF_PADDING, margin_right: HALF_PADDING, margin_bottom: PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do
|
stack(width: 1.0 / news_item_width_ratio, height: 345, aspect_ratio: 1, margin_left: PADDING, margin_bottom: PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do
|
||||||
stack(width: 1.0, height: 1.0 / 2.5, padding: PADDING, background_nine_slice: NINE_SLICE_ROUNDED_TOP, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do
|
stack(width: 1.0, height: 1.0 / 2.5, padding: PADDING, background_nine_slice: NINE_SLICE_ROUNDED_TOP, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do
|
||||||
para item.timestamp.strftime("%B %e, %Y") #"September 29, 2026"
|
para item.timestamp.strftime("%B %e, %Y") #"September 29, 2026"
|
||||||
tagline item.title
|
tagline item.title
|
||||||
|
|||||||
Reference in New Issue
Block a user