Show build revision and automate Warp sync workflow
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use galaxy_core::channel::ChannelState;
|
||||
use galaxyui::elements::{
|
||||
Align, CacheOption, ConstrainedBox, Container, CrossAxisAlignment, Element, Flex,
|
||||
FormattedTextElement, Image, Padding, ParentElement, Text,
|
||||
@@ -89,6 +90,31 @@ impl SettingsWidget for AboutPageWidget {
|
||||
)
|
||||
.with_color(appearance.theme().nonactive_ui_text_color().into())
|
||||
.finish();
|
||||
let build = Text::new(
|
||||
format!(
|
||||
"Build {} · {}",
|
||||
ChannelState::channel().local_control_channel_name(),
|
||||
crate::build_info::profile()
|
||||
),
|
||||
appearance.ui_font_family(),
|
||||
12.,
|
||||
)
|
||||
.with_color(appearance.theme().nonactive_ui_text_color().into())
|
||||
.finish();
|
||||
let commit = Text::new(
|
||||
format!("Commit {}", crate::build_info::source_revision_label()),
|
||||
appearance.ui_font_family(),
|
||||
12.,
|
||||
)
|
||||
.with_color(appearance.theme().nonactive_ui_text_color().into())
|
||||
.finish();
|
||||
let build_details = Flex::column()
|
||||
.with_cross_axis_alignment(CrossAxisAlignment::Center)
|
||||
.with_spacing(4.)
|
||||
.with_child(version)
|
||||
.with_child(build)
|
||||
.with_child(commit)
|
||||
.finish();
|
||||
let description = FormattedTextElement::from_str(
|
||||
"Galaxy is a local-first terminal and AI workspace built for developers. Your settings, terminal data, conversations, and Galaxy Drive content stay on this machine in your Galaxy directory. Galaxy sends request data only to the AI providers you configure.",
|
||||
appearance.ui_font_family(),
|
||||
@@ -107,7 +133,7 @@ impl SettingsWidget for AboutPageWidget {
|
||||
.with_spacing(12.)
|
||||
.with_child(icon)
|
||||
.with_child(title)
|
||||
.with_child(version)
|
||||
.with_child(build_details)
|
||||
.with_child(description)
|
||||
.finish(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user