Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -19,17 +19,17 @@ use crate::util::bindings::CustomAction;
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use ui_components::{button, Component as _, Options as _};
|
||||
use warp_core::ui::theme::color::internal_colors;
|
||||
use warpui::elements::{
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxyui::elements::{
|
||||
Align, Border, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, Dismiss, Fill,
|
||||
Flex, FormattedTextElement, HighlightedHyperlink, MainAxisAlignment, MainAxisSize,
|
||||
MouseStateHandle, ParentElement, Radius, Shrinkable, Stack,
|
||||
};
|
||||
use warpui::fonts::Weight;
|
||||
use warpui::keymap::{FixedBinding, Keystroke};
|
||||
use warpui::text_layout::TextAlignment;
|
||||
use warpui::ui_components::components::{Coords, UiComponent, UiComponentStyles};
|
||||
use warpui::{
|
||||
use galaxyui::fonts::Weight;
|
||||
use galaxyui::keymap::{FixedBinding, Keystroke};
|
||||
use galaxyui::text_layout::TextAlignment;
|
||||
use galaxyui::ui_components::components::{Coords, UiComponent, UiComponentStyles};
|
||||
use galaxyui::{
|
||||
actions::StandardAction, AppContext, Element, Entity, FocusContext, SingletonEntity,
|
||||
TypedActionView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
@@ -38,7 +38,7 @@ const MODAL_WIDTH: f32 = 460.;
|
||||
const AUTH_TOKEN_INPUT_BORDER_RADIUS: Radius = Radius::Pixels(4.);
|
||||
|
||||
pub fn init(app: &mut AppContext) {
|
||||
use warpui::keymap::macros::*;
|
||||
use galaxyui::keymap::macros::*;
|
||||
app.register_fixed_bindings([
|
||||
FixedBinding::new(
|
||||
"enter",
|
||||
@@ -250,7 +250,7 @@ impl View for PasteAuthTokenModalView {
|
||||
let close_button = ui_builder
|
||||
.close_button(24., self.close_mouse_state.clone())
|
||||
.build()
|
||||
.on_click(|ctx: &mut warpui::EventContext, _, _| {
|
||||
.on_click(|ctx: &mut galaxyui::EventContext, _, _| {
|
||||
ctx.dispatch_typed_action(PasteAuthTokenModalAction::Cancel);
|
||||
})
|
||||
.finish();
|
||||
@@ -401,7 +401,7 @@ impl View for PasteAuthTokenModalView {
|
||||
// Dim backdrop with click-to-dismiss behavior (matches the mockup).
|
||||
let mut stack = Stack::new();
|
||||
stack.add_child(
|
||||
Container::new(warpui::elements::Empty::new().finish())
|
||||
Container::new(galaxyui::elements::Empty::new().finish())
|
||||
.with_background_color(ColorU::new(0, 0, 0, 179))
|
||||
.finish(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user