调整270度展开点阵布局
This commit is contained in:
@@ -6,7 +6,7 @@ use crate::render::{ActiveMode, FingerMode, HandGatewayMode};
|
||||
use crate::style::{self, ONE_DARK_PRO, apply_fonts, apply_theme, dim_text, layout};
|
||||
use crate::ui::SerialMode;
|
||||
use crate::{
|
||||
matrix::{MATRIX_COLS, MATRIX_ROWS},
|
||||
matrix::{MATRIX_COLS, MATRIX_ROWS, UNFOLDED_SENSOR_SEGMENT_COUNTS},
|
||||
render::{
|
||||
BackgroundRenderResources, PRESSURE_CELL_COUNT, PressureFrame, PressureSamples,
|
||||
WgpuBackgroundCallback,
|
||||
@@ -21,8 +21,8 @@ use eframe::{egui, egui_wgpu};
|
||||
use std::sync::Arc;
|
||||
|
||||
const SUMMARY_POINTS_PER_SERIES: usize = 42;
|
||||
const HAND_FORCE_PANEL_COUNT: usize = 7;
|
||||
const HAND_FORCE_SEGMENT_COUNTS: [usize; HAND_FORCE_PANEL_COUNT] = [84, 84, 84, 84, 84, 70, 44];
|
||||
const HAND_FORCE_PANEL_COUNT: usize = UNFOLDED_SENSOR_SEGMENT_COUNTS.len();
|
||||
const HAND_FORCE_SEGMENT_COUNTS: [usize; HAND_FORCE_PANEL_COUNT] = UNFOLDED_SENSOR_SEGMENT_COUNTS;
|
||||
|
||||
pub struct EskinDesktopApp {
|
||||
connect_panel: FloatingPanelState,
|
||||
@@ -678,7 +678,7 @@ fn draw_config_bar_mode(ui: &mut egui::Ui, config: &mut ConfigPanelState) -> Opt
|
||||
// if mode_button(ui, &mut config.mode, SerialMode::Finger3D, "3D指尖") {
|
||||
// changed_to = Some(SerialMode::Finger3D);
|
||||
// }
|
||||
if mode_button(ui, &mut config.mode, SerialMode::Hand, "展示手掌") {
|
||||
if mode_button(ui, &mut config.mode, SerialMode::Hand, "270°展开") {
|
||||
changed_to = Some(SerialMode::Hand);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user