Compare commits
No commits in common. "1f696d8a8762cbf27f70f9be3063130253d08e63" and "322156acde1b0e034db214a47a93741f59245aa7" have entirely different histories.
1f696d8a87
...
322156acde
@ -31,7 +31,6 @@ export default class EntryAbility extends UIAbility {
|
|||||||
//Set Main Window Size
|
//Set Main Window Size
|
||||||
const mainWindowWidth: number = screenWidth-100;
|
const mainWindowWidth: number = screenWidth-100;
|
||||||
const mainWindowHeight: number = screenHeight-200;
|
const mainWindowHeight: number = screenHeight-200;
|
||||||
console.error(`main window Width: mainWindowWidth, Height: mainWindowHeight`);
|
|
||||||
//Init&&Save AppStorageV2
|
//Init&&Save AppStorageV2
|
||||||
const mainDisplayInfo = AppStorageV2.connect<MainScreenDisplayInfo>(MainScreenDisplayInfo, () => new MainScreenDisplayInfo(
|
const mainDisplayInfo = AppStorageV2.connect<MainScreenDisplayInfo>(MainScreenDisplayInfo, () => new MainScreenDisplayInfo(
|
||||||
screenDisplayId,screenWidth,screenHeight
|
screenDisplayId,screenWidth,screenHeight
|
||||||
|
|||||||
@ -21,7 +21,7 @@ export struct EventBtn {
|
|||||||
.height(this.mwInfo.mainWindowWidth*0.02)
|
.height(this.mwInfo.mainWindowWidth*0.02)
|
||||||
.backgroundImage($r('app.media.' + this.eventBtn.eIcon))
|
.backgroundImage($r('app.media.' + this.eventBtn.eIcon))
|
||||||
.backgroundImagePosition({ x: '5%', y: '5%' })
|
.backgroundImagePosition({ x: '5%', y: '5%' })
|
||||||
.backgroundColor(Color.Transparent)
|
.backgroundColor('#F8F9FA')
|
||||||
.backgroundImageSize({
|
.backgroundImageSize({
|
||||||
width: '90%', // 图片宽度占满按钮
|
width: '90%', // 图片宽度占满按钮
|
||||||
height: '90%' // 图片高度占满按钮
|
height: '90%' // 图片高度占满按钮
|
||||||
|
|||||||
@ -9,12 +9,15 @@ export struct TextComboBox {
|
|||||||
Menu() {
|
Menu() {
|
||||||
ForEach(this.menu, (item: TitleButton, index: number) => {
|
ForEach(this.menu, (item: TitleButton, index: number) => {
|
||||||
MenuItem({ content: item.eName })
|
MenuItem({ content: item.eName })
|
||||||
.labelFont({ size: 20})
|
|
||||||
.width('auto')
|
.width('auto')
|
||||||
.onClick(()=>{
|
.margin({
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
bottom: 0,
|
||||||
|
right: 0
|
||||||
|
}).onClick(()=>{
|
||||||
this.selectIndex=index;
|
this.selectIndex=index;
|
||||||
})
|
})
|
||||||
.backgroundColor('#f3f3f0')
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -34,12 +37,15 @@ export struct TextInputComboBox {
|
|||||||
Menu() {
|
Menu() {
|
||||||
ForEach(this.menu, (item: TitleButton, index: number) => {
|
ForEach(this.menu, (item: TitleButton, index: number) => {
|
||||||
MenuItem({ content: item.eName })
|
MenuItem({ content: item.eName })
|
||||||
.labelFont({ size: 20})
|
|
||||||
.width('auto')
|
.width('auto')
|
||||||
.onClick(()=>{
|
.margin({
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
bottom: 0,
|
||||||
|
right: 0
|
||||||
|
}).onClick(()=>{
|
||||||
this.selectIndex=index;
|
this.selectIndex=index;
|
||||||
})
|
})
|
||||||
.backgroundColor('#f3f3f0')
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,8 +18,13 @@ export struct GroupTextEventMenu {
|
|||||||
GroupMenu(menus: Array<TitleMenu>) {
|
GroupMenu(menus: Array<TitleMenu>) {
|
||||||
ForEach(menus, (item: TitleMenu, index: number) => {
|
ForEach(menus, (item: TitleMenu, index: number) => {
|
||||||
MenuItem({ startIcon: $r('app.media.' + item.mIcon), content: item.mName })
|
MenuItem({ startIcon: $r('app.media.' + item.mIcon), content: item.mName })
|
||||||
.labelFont({ size: 20})
|
|
||||||
.width('auto')
|
.width('auto')
|
||||||
|
.margin({
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
bottom: 0,
|
||||||
|
right: 0
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +48,7 @@ export struct GroupTextEventMenu {
|
|||||||
height: '90%' // 图片高度占满按钮
|
height: '90%' // 图片高度占满按钮
|
||||||
})
|
})
|
||||||
.bindMenu(this.GroupMenu(this.grpEvent.grpMenu))
|
.bindMenu(this.GroupMenu(this.grpEvent.grpMenu))
|
||||||
.backgroundColor(Color.Transparent)
|
.backgroundColor('#F8F9FA')
|
||||||
}
|
}
|
||||||
}.align(Alignment.BottomEnd)
|
}.align(Alignment.BottomEnd)
|
||||||
}
|
}
|
||||||
@ -62,7 +67,12 @@ export struct MenuBtn {
|
|||||||
Menu() {
|
Menu() {
|
||||||
ForEach(this.menuBtn, (item: TitleButton, index: number) => {
|
ForEach(this.menuBtn, (item: TitleButton, index: number) => {
|
||||||
MenuItem({ startIcon: $r('app.media.' + item.eIcon), content: item.eName })
|
MenuItem({ startIcon: $r('app.media.' + item.eIcon), content: item.eName })
|
||||||
.labelFont({ size: 20})
|
.margin({
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
bottom: 0,
|
||||||
|
right: 0
|
||||||
|
})
|
||||||
.onClick(()=>{
|
.onClick(()=>{
|
||||||
this.curtIndex=index;
|
this.curtIndex=index;
|
||||||
ExecuteCommand(item as TitleButton);
|
ExecuteCommand(item as TitleButton);
|
||||||
@ -80,7 +90,7 @@ export struct MenuBtn {
|
|||||||
.height(this.mwInfo.mainWindowWidth*0.02)
|
.height(this.mwInfo.mainWindowWidth*0.02)
|
||||||
.backgroundImage($r('app.media.' + this.menuBtn[this.curtIndex].eIcon))
|
.backgroundImage($r('app.media.' + this.menuBtn[this.curtIndex].eIcon))
|
||||||
.backgroundImagePosition({ x: '5%', y: '5%' })
|
.backgroundImagePosition({ x: '5%', y: '5%' })
|
||||||
.backgroundColor(Color.Transparent)
|
.backgroundColor('#F8F9FA')
|
||||||
.backgroundImageSize({
|
.backgroundImageSize({
|
||||||
width: '90%', // 图片宽度占满按钮
|
width: '90%', // 图片宽度占满按钮
|
||||||
height: '90%' // 图片高度占满按钮
|
height: '90%' // 图片高度占满按钮
|
||||||
@ -91,8 +101,8 @@ export struct MenuBtn {
|
|||||||
.width(this.mwInfo.mainWindowWidth*0.02)
|
.width(this.mwInfo.mainWindowWidth*0.02)
|
||||||
.height(this.mwInfo.mainWindowWidth*0.005)
|
.height(this.mwInfo.mainWindowWidth*0.005)
|
||||||
.backgroundImage($r('app.media.base_chevron_down'))
|
.backgroundImage($r('app.media.base_chevron_down'))
|
||||||
.backgroundImagePosition({ x: '40%', y: '0%' })
|
.backgroundImagePosition({ x: '35%', y: '0%' })
|
||||||
.backgroundColor(Color.Transparent)
|
.backgroundColor('#F8F9FA')
|
||||||
|
|
||||||
Text(this.menuBtn[this.curtIndex].eName)
|
Text(this.menuBtn[this.curtIndex].eName)
|
||||||
.fontSize(16)
|
.fontSize(16)
|
||||||
@ -100,8 +110,7 @@ export struct MenuBtn {
|
|||||||
.height(this.mwInfo.mainWindowWidth*0.005)
|
.height(this.mwInfo.mainWindowWidth*0.005)
|
||||||
.textAlign(TextAlign.Center)
|
.textAlign(TextAlign.Center)
|
||||||
}
|
}
|
||||||
}
|
}.padding(1)
|
||||||
.padding(1)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,11 @@
|
|||||||
import { BusinessError } from '@kit.BasicServicesKit';
|
import { BusinessError } from '@kit.BasicServicesKit';
|
||||||
import { window,UIContext, AppStorageV2} from '@kit.ArkUI';
|
import { window,UIContext} from '@kit.ArkUI';
|
||||||
import { MainWindowInfo, MainWindowStageInfo } from '../AppStorageV2Class';
|
|
||||||
|
|
||||||
let subWindow: window.Window | undefined = undefined;
|
let subWindow: window.Window | undefined = undefined;
|
||||||
|
|
||||||
export async function CreateAndShowSubWindow(name:string,pages:string) {
|
export async function CreateAndShowSubWindow(name:string,pages:string) {
|
||||||
try {
|
try {
|
||||||
const appws=AppStorageV2.connect<MainWindowStageInfo>(MainWindowStageInfo, () => new MainWindowStageInfo())!;
|
const windowStage = AppStorage.get('windowStage') as window.WindowStage;
|
||||||
const mwInfo = AppStorageV2.connect<MainWindowInfo>(MainWindowInfo, () => new MainWindowInfo())!;
|
|
||||||
const windowStage = appws.ws;
|
|
||||||
if(windowStage==null){
|
if(windowStage==null){
|
||||||
console.error('Failed to create the subwindow. Cause: windowStage is null');
|
console.error('Failed to create the subwindow. Cause: windowStage is null');
|
||||||
return;
|
return;
|
||||||
@ -28,9 +25,9 @@ export async function CreateAndShowSubWindow(name:string,pages:string) {
|
|||||||
console.log("设置拖拽缩放", `报错信息:${err.code}, ${err.message}`)
|
console.log("设置拖拽缩放", `报错信息:${err.code}, ${err.message}`)
|
||||||
})
|
})
|
||||||
//子窗口创建成功后,设置子窗口的位置、大小及相关属性等。
|
//子窗口创建成功后,设置子窗口的位置、大小及相关属性等。
|
||||||
subWindow.moveWindowTo(25, 25)
|
subWindow.moveWindowTo(150, 15)
|
||||||
//子窗口重置大小
|
//子窗口重置大小
|
||||||
subWindow.resize(mwInfo.mainWindowWidth*0.3, mwInfo.mainWindowHeight*0.9);
|
subWindow.resize(800, 1200);
|
||||||
subWindow.setUIContent(pages, (err: BusinessError) => {
|
subWindow.setUIContent(pages, (err: BusinessError) => {
|
||||||
if (err.code) {
|
if (err.code) {
|
||||||
console.error("加载页面失败:", err);
|
console.error("加载页面失败:", err);
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
import { MainWindowInfo } from '../AppStorageV2Class';
|
|
||||||
import { Expandable } from '../CustomStyle/Expandable';
|
import { Expandable } from '../CustomStyle/Expandable';
|
||||||
import { AppStorageV2 } from '@kit.ArkUI';
|
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@ComponentV2
|
@ComponentV2
|
||||||
struct SWExtrude {
|
struct SWExtrude {
|
||||||
@Local mwInfo: MainWindowInfo = AppStorageV2.connect<MainWindowInfo>(MainWindowInfo, () => new MainWindowInfo())!;
|
|
||||||
// 控制内容区域显示与隐藏的状态
|
// 控制内容区域显示与隐藏的状态
|
||||||
@Provider('isSubExpanded') isExpanded:boolean=true;
|
@Provider('isSubExpanded') isExpanded:boolean=true;
|
||||||
build() {
|
build() {
|
||||||
@ -15,10 +12,10 @@ struct SWExtrude {
|
|||||||
Row(){
|
Row(){
|
||||||
// 内容区域,使用条件渲染来控制显示与隐藏
|
// 内容区域,使用条件渲染来控制显示与隐藏
|
||||||
if (this.isExpanded) {
|
if (this.isExpanded) {
|
||||||
Text('*选择曲线(0)')
|
Text('*选择曲线(0)').width(px2vp(35)).height(px2vp(35))
|
||||||
Blank().width('30%')
|
Blank().width('30%')
|
||||||
Button('绘制曲线')
|
Button('绘制曲线').width(px2vp(35)).height(px2vp(35))
|
||||||
Button('选择曲线')
|
Button('选择曲线').width(px2vp(35)).height(px2vp(35))
|
||||||
}
|
}
|
||||||
}.justifyContent(FlexAlign.Start)
|
}.justifyContent(FlexAlign.Start)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,16 +60,14 @@ struct Index {
|
|||||||
}.layoutWeight(1)
|
}.layoutWeight(1)
|
||||||
.align(Alignment.Center)
|
.align(Alignment.Center)
|
||||||
}.width('100%')
|
}.width('100%')
|
||||||
.height(this.mwInfo.mainWindowHeight * 0.36)
|
.height(this.mwInfo.mainWindowHeight * 0.36)
|
||||||
//分割线
|
//分割线
|
||||||
Divider().vertical(false).strokeWidth(1).lineCap(LineCapStyle.Round).width('100%').backgroundColor(Color.Grey)
|
Divider().vertical(false).strokeWidth(1).lineCap(LineCapStyle.Round).width('100%').backgroundColor(Color.Grey)
|
||||||
///状态栏
|
///状态栏
|
||||||
Column() {
|
Column() {
|
||||||
Text('状态栏')
|
Text('状态栏')
|
||||||
}.width('100%')
|
}.width('100%')
|
||||||
.align(Alignment.End)
|
.height(this.mwInfo.mainWindowHeight * 0.05)
|
||||||
.alignItems(HorizontalAlign.Start)
|
|
||||||
.height(this.mwInfo.mainWindowHeight * 0.05)
|
|
||||||
}.backgroundColor('#f3f3f0')
|
}.backgroundColor('#f3f3f0')
|
||||||
.width('100%')
|
.width('100%')
|
||||||
.height('100%')
|
.height('100%')
|
||||||
|
|||||||
@ -26,8 +26,8 @@ export struct LeftSideTab {
|
|||||||
})
|
})
|
||||||
.backgroundImage(this.isExpanded ? $r('app.media.base_expand_on'):$r('app.media.base_expand_off'))
|
.backgroundImage(this.isExpanded ? $r('app.media.base_expand_on'):$r('app.media.base_expand_off'))
|
||||||
.type(ButtonType.Normal)
|
.type(ButtonType.Normal)
|
||||||
.width(this.mwInfo.mainWindowWidth*0.013)
|
.width(50)
|
||||||
.height(this.mwInfo.mainWindowWidth*0.013)
|
.height(50)
|
||||||
.onClick(()=>{
|
.onClick(()=>{
|
||||||
this.isExpanded = !this.isExpanded;
|
this.isExpanded = !this.isExpanded;
|
||||||
if(this.isExpanded){
|
if(this.isExpanded){
|
||||||
@ -52,8 +52,8 @@ export struct LeftSideTab {
|
|||||||
})
|
})
|
||||||
.backgroundImage($r('app.media.'+item.eIcon))
|
.backgroundImage($r('app.media.'+item.eIcon))
|
||||||
.fontWeight(index === this.leftSideBarFocusIndex ? FontWeight.Bold : FontWeight.Normal)
|
.fontWeight(index === this.leftSideBarFocusIndex ? FontWeight.Bold : FontWeight.Normal)
|
||||||
.width(this.mwInfo.mainWindowWidth*0.013)
|
.height(50)
|
||||||
.height(this.mwInfo.mainWindowWidth*0.013)
|
.width(50)
|
||||||
.type(ButtonType.Normal)
|
.type(ButtonType.Normal)
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
this.leftSideBarTabs.changeIndex(index);
|
this.leftSideBarTabs.changeIndex(index);
|
||||||
@ -67,8 +67,7 @@ export struct LeftSideTab {
|
|||||||
.align(Alignment.Start)
|
.align(Alignment.Start)
|
||||||
.scrollable(ScrollDirection.Vertical)
|
.scrollable(ScrollDirection.Vertical)
|
||||||
.scrollBar(BarState.Off)
|
.scrollBar(BarState.Off)
|
||||||
.width(this.mwInfo.mainWindowWidth*0.013)
|
.width(50)
|
||||||
.height(this.mwInfo.mainWindowWidth*0.013)
|
|
||||||
.height('100%')
|
.height('100%')
|
||||||
}.borderWidth(1)
|
}.borderWidth(1)
|
||||||
.borderColor(Color.Grey)
|
.borderColor(Color.Grey)
|
||||||
|
|||||||
@ -7,13 +7,10 @@ import {DisplayMode} from "../LayoutInterface/Layout/DisplayMode"
|
|||||||
import { MenuBtn } from "../CustomStyle/Menu";
|
import { MenuBtn } from "../CustomStyle/Menu";
|
||||||
import { LayoutOption } from "../LayoutInterface/Layout/LayoutOption";
|
import { LayoutOption } from "../LayoutInterface/Layout/LayoutOption";
|
||||||
import { TitleData } from "../LayoutInterface/Layout/TabContent";
|
import { TitleData } from "../LayoutInterface/Layout/TabContent";
|
||||||
import { MainWindowInfo } from "../AppStorageV2Class";
|
|
||||||
import { AppStorageV2, font, Font } from "@kit.ArkUI";
|
|
||||||
|
|
||||||
@ComponentV2
|
@ComponentV2
|
||||||
export struct TitleColumnSub {
|
export struct TitleColumnSub {
|
||||||
@Local mwInfo: MainWindowInfo = AppStorageV2.connect<MainWindowInfo>(MainWindowInfo, () => new MainWindowInfo())!;
|
//Title下的子行的功能
|
||||||
|
|
||||||
@Local layerArray: Array<TitleButton> = [];
|
@Local layerArray: Array<TitleButton> = [];
|
||||||
@Local dX:number=0;
|
@Local dX:number=0;
|
||||||
@Local dY:number=0;
|
@Local dY:number=0;
|
||||||
@ -25,15 +22,20 @@ export struct TitleColumnSub {
|
|||||||
ForEach(menus, (item: TitleButton, index: number) => {
|
ForEach(menus, (item: TitleButton, index: number) => {
|
||||||
MenuItem({ startIcon: $r('app.media.'+item.eIcon), content: item.eName })
|
MenuItem({ startIcon: $r('app.media.'+item.eIcon), content: item.eName })
|
||||||
.width('150')
|
.width('150')
|
||||||
.labelFont({size: 20})
|
.margin({
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
bottom: 0,
|
||||||
|
right: 0
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private ViewDialog(): CustomDialogController {
|
private ViewDialog(): CustomDialogController {
|
||||||
return new CustomDialogController({
|
return new CustomDialogController({
|
||||||
builder: ViewDialog(), // 确保 ViewDialog 组件已正确定义
|
builder: ViewDialog(), // 确保 ViewDialog 组件已正确定义
|
||||||
width: this.mwInfo.mainWindowWidth*0.04,
|
width: '130vp',
|
||||||
height: this.mwInfo.mainWindowWidth*0.04,
|
height: '118vp',
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
cornerRadius: 5,
|
cornerRadius: 5,
|
||||||
isModal: true,
|
isModal: true,
|
||||||
@ -45,37 +47,31 @@ export struct TitleColumnSub {
|
|||||||
build(){
|
build(){
|
||||||
Row({space:5}){
|
Row({space:5}){
|
||||||
Button()
|
Button()
|
||||||
|
.height(25)
|
||||||
|
.width(25)
|
||||||
.padding(1)
|
.padding(1)
|
||||||
.width(this.mwInfo.mainWindowWidth*0.013)
|
|
||||||
.height(this.mwInfo.mainWindowWidth*0.013)
|
|
||||||
.backgroundColor(Color.Transparent)
|
|
||||||
.backgroundImage($r('app.media.base_shortcut_menu'))
|
.backgroundImage($r('app.media.base_shortcut_menu'))
|
||||||
.backgroundImagePosition({ x: '5%', y: '5%' })
|
.backgroundImagePosition({ x: '10%', y: '10%' })
|
||||||
.backgroundImageSize({
|
.backgroundImageSize({
|
||||||
width: '90%', // 图片宽度占满按钮
|
width: '80%', // 图片宽度占满按钮
|
||||||
height: '90%' // 图片高度占满按钮
|
height: '80%' // 图片高度占满按钮
|
||||||
})
|
})
|
||||||
.bindMenu(this.DisplayModeMenu(TitleData.mFileModel.cmEvents as Array<TitleButton>))
|
.bindMenu(this.DisplayModeMenu(TitleData.mFileModel.cmEvents as Array<TitleButton>))
|
||||||
.type(ButtonType.Normal)
|
.type(ButtonType.Normal)
|
||||||
.margin({ top:0, left: 5, bottom: 0, right: 0 })
|
Text('菜单').bindMenu(this.DisplayModeMenu(TitleData.mFileModel.cmEvents as Array<TitleButton>))
|
||||||
Text('菜单')
|
|
||||||
.fontSize(20)
|
|
||||||
.bindMenu(this.DisplayModeMenu(TitleData.mFileModel.cmEvents as Array<TitleButton>))
|
|
||||||
Text('|')
|
Text('|')
|
||||||
Text('拾取类型:')
|
Text('拾取类型:')
|
||||||
.fontSize(20)
|
|
||||||
TextComboBox({menu:SelectionMode})
|
TextComboBox({menu:SelectionMode})
|
||||||
|
.width('100vp')
|
||||||
.borderWidth(1)
|
.borderWidth(1)
|
||||||
.borderColor(Color.Grey)
|
.borderColor(Color.Grey)
|
||||||
.borderRadius(5)
|
.borderRadius(5)
|
||||||
Text('图层:')
|
Text('图层:')
|
||||||
.fontSize(20)
|
|
||||||
TextInputComboBox({menu:this.layerArray}).width('10%')
|
TextInputComboBox({menu:this.layerArray}).width('10%')
|
||||||
Button()
|
Button()
|
||||||
.width(this.mwInfo.mainWindowWidth*0.013)
|
.height(35)
|
||||||
.height(this.mwInfo.mainWindowWidth*0.013)
|
.width(35)
|
||||||
.padding(1)
|
.padding(1)
|
||||||
.backgroundColor(Color.Transparent)
|
|
||||||
.backgroundImage($r('app.media.'+LayoutOption[0].eIcon))
|
.backgroundImage($r('app.media.'+LayoutOption[0].eIcon))
|
||||||
.backgroundImageSize({ width: '100%', height: '100%' })
|
.backgroundImageSize({ width: '100%', height: '100%' })
|
||||||
.bindMenu(this.DisplayModeMenu(LayoutOption))
|
.bindMenu(this.DisplayModeMenu(LayoutOption))
|
||||||
@ -87,9 +83,8 @@ export struct TitleColumnSub {
|
|||||||
this.viewDialog=this.ViewDialog();
|
this.viewDialog=this.ViewDialog();
|
||||||
}
|
}
|
||||||
this.viewDialog.open();
|
this.viewDialog.open();
|
||||||
}).width(this.mwInfo.mainWindowWidth*0.013)
|
}).width('35vp')
|
||||||
.height(this.mwInfo.mainWindowWidth*0.013)
|
.height('35vp')
|
||||||
.backgroundColor(Color.Transparent)
|
|
||||||
.backgroundImage($r('app.media.' + SwitchView[0].eIcon))
|
.backgroundImage($r('app.media.' + SwitchView[0].eIcon))
|
||||||
.backgroundImageSize({
|
.backgroundImageSize({
|
||||||
width: '100%', // 图片宽度占满按钮
|
width: '100%', // 图片宽度占满按钮
|
||||||
@ -97,10 +92,9 @@ export struct TitleColumnSub {
|
|||||||
})
|
})
|
||||||
|
|
||||||
Button()
|
Button()
|
||||||
.width(this.mwInfo.mainWindowWidth*0.013)
|
.height(35)
|
||||||
.height(this.mwInfo.mainWindowWidth*0.013)
|
.width(35)
|
||||||
.padding(1)
|
.padding(1)
|
||||||
.backgroundColor(Color.Transparent)
|
|
||||||
.backgroundImage($r('app.media.'+DisplayMode[0].eIcon))
|
.backgroundImage($r('app.media.'+DisplayMode[0].eIcon))
|
||||||
.backgroundImageSize({ width: '100%', height: '100%' })
|
.backgroundImageSize({ width: '100%', height: '100%' })
|
||||||
.bindMenu(this.DisplayModeMenu(DisplayMode))
|
.bindMenu(this.DisplayModeMenu(DisplayMode))
|
||||||
|
|||||||
@ -31,7 +31,6 @@ export struct TitleTab {
|
|||||||
MenuItem({ startIcon: $r('app.media.'+item.eIcon), content: item.eName })
|
MenuItem({ startIcon: $r('app.media.'+item.eIcon), content: item.eName })
|
||||||
.width('auto')
|
.width('auto')
|
||||||
.height('auto')
|
.height('auto')
|
||||||
.labelFont({size: 20})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,12 +15,10 @@
|
|||||||
"name": "EntryAbility",
|
"name": "EntryAbility",
|
||||||
"srcEntry": "./ets/entryability/EntryAbility.ets",
|
"srcEntry": "./ets/entryability/EntryAbility.ets",
|
||||||
"description": "$string:EntryAbility_desc",
|
"description": "$string:EntryAbility_desc",
|
||||||
"icon": "$media:base_opencax_logo",
|
"icon": "$media:layered_image",
|
||||||
"label": "$string:EntryAbility_label",
|
"label": "$string:EntryAbility_label",
|
||||||
"startWindowIcon": "$media:base_start_background",
|
"startWindowIcon": "$media:startIcon",
|
||||||
"startWindowBackground": "$color:start_window_background",
|
"startWindowBackground": "$color:start_window_background",
|
||||||
"minWindowWidth": 1200, // 设置最小宽度
|
|
||||||
"minWindowHeight": 800, // 设置最小高度
|
|
||||||
"exported": true,
|
"exported": true,
|
||||||
"skills": [
|
"skills": [
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
entry/src/main/resources/base/media/base_app_exit.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 852 B |
|
Before Width: | Height: | Size: 1.2 MiB |
BIN
entry/src/main/resources/base/media/base_close_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
BIN
entry/src/main/resources/base/media/base_exit_icon.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 852 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
entry/src/main/resources/base/media/base_export_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 604 B |
BIN
entry/src/main/resources/base/media/base_help_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
BIN
entry/src/main/resources/base/media/base_import_export_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 686 B |
BIN
entry/src/main/resources/base/media/base_import_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 615 B |
BIN
entry/src/main/resources/base/media/base_model_cad.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 7.1 KiB |
BIN
entry/src/main/resources/base/media/base_model_cae.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
BIN
entry/src/main/resources/base/media/base_model_cam.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
BIN
entry/src/main/resources/base/media/base_new_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
BIN
entry/src/main/resources/base/media/base_open_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 887 B |
|
Before Width: | Height: | Size: 336 KiB |
BIN
entry/src/main/resources/base/media/base_properties.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 663 B |
BIN
entry/src/main/resources/base/media/base_save_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 714 B |
BIN
entry/src/main/resources/base/media/base_saveall_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 737 B |
BIN
entry/src/main/resources/base/media/base_saveas_file.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
BIN
entry/src/main/resources/base/media/base_seetings.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
BIN
entry/src/main/resources/base/media/base_shortcut_menu.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 1.8 MiB |
BIN
entry/src/main/resources/base/media/base_tools.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
BIN
entry/src/main/resources/base/media/base_view_back.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 967 B |
BIN
entry/src/main/resources/base/media/base_view_bottom.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
BIN
entry/src/main/resources/base/media/base_view_front.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
BIN
entry/src/main/resources/base/media/base_view_left.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
BIN
entry/src/main/resources/base/media/base_view_right.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
BIN
entry/src/main/resources/base/media/base_view_tfr_iso.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
BIN
entry/src/main/resources/base/media/base_view_tfr_tri.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
BIN
entry/src/main/resources/base/media/base_view_top.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
BIN
entry/src/main/resources/base/media/display_hidden_line_dim.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
BIN
entry/src/main/resources/base/media/display_shade.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
BIN
entry/src/main/resources/base/media/display_shade_show_edges.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
BIN
entry/src/main/resources/base/media/layer_category.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
BIN
entry/src/main/resources/base/media/layer_copy_to.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
BIN
entry/src/main/resources/base/media/layer_move_to.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
BIN
entry/src/main/resources/base/media/layer_settings.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
BIN
entry/src/main/resources/base/media/layer_vis_in_view.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
BIN
entry/src/main/resources/base/media/left_side_assembly.bmp
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |