mirror of
https://github.com/jwinterm/grim.git
synced 2026-11-13 01:03:54 +01:00
android + ui: display cutouts (insets) refactoring, optimize platform-specific app, reorganize views
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Copyright 2023 The Grim Developers
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
mod node;
|
||||
pub use node::NodeSetup;
|
||||
|
||||
mod p2p;
|
||||
pub use p2p::P2PSetup;
|
||||
|
||||
mod pool;
|
||||
pub use pool::PoolSetup;
|
||||
|
||||
mod dandelion;
|
||||
pub use dandelion::DandelionSetup;
|
||||
|
||||
mod stratum;
|
||||
pub use stratum::StratumSetup;
|
||||
@@ -21,7 +21,7 @@ use crate::AppConfig;
|
||||
use crate::gui::Colors;
|
||||
use crate::gui::icons::{CLIPBOARD_TEXT, CLOCK_CLOCKWISE, COMPUTER_TOWER, COPY, PLUG, POWER, SHIELD, SHIELD_SLASH};
|
||||
use crate::gui::platform::PlatformCallbacks;
|
||||
use crate::gui::views::{Modal, ModalPosition, NetworkContent, View};
|
||||
use crate::gui::views::{Modal, ModalPosition, Network, View};
|
||||
use crate::gui::views::network::settings::NetworkSettings;
|
||||
use crate::node::{Node, NodeConfig};
|
||||
|
||||
@@ -115,7 +115,7 @@ impl NodeSetup {
|
||||
// Autorun node setup.
|
||||
ui.vertical_centered(|ui| {
|
||||
ui.add_space(6.0);
|
||||
NetworkContent::autorun_node_ui(ui);
|
||||
Network::autorun_node_ui(ui);
|
||||
if Node::is_running() {
|
||||
ui.add_space(2.0);
|
||||
ui.label(RichText::new(t!("network_settings.restart_node_required"))
|
||||
|
||||
Reference in New Issue
Block a user