add 更新界面样式

This commit is contained in:
freefire 2025-01-12 22:35:14 +08:00
parent dd942fd40a
commit 91cc4f3298
2 changed files with 33 additions and 16 deletions

View File

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<project ver="10" name="CircosHeatmap-aardio" libEmbed="true" icon="..." ui="win" output="CircosHeatmap-aardio.exe" CompanyName="单位名称" FileDescription="CircosHeatmap-aardio" LegalCopyright="Copyright (C) 作者 2025" ProductName="CircosHeatmap-aardio" InternalName="CircosHeatmap-aardio" FileVersion="0.0.0.9" ProductVersion="0.0.0.9" publishDir="/dist/" dstrip="true">
<project ver="10" name="CircosHeatmap-aardio" libEmbed="true" icon="..." ui="win" output="CircosHeatmap-aardio.exe" CompanyName="单位名称" FileDescription="CircosHeatmap-aardio" LegalCopyright="Copyright (C) 作者 2025" ProductName="CircosHeatmap-aardio" InternalName="CircosHeatmap-aardio" FileVersion="0.0.0.17" ProductVersion="0.0.0.17" publishDir="/dist/" dstrip="true" local="false" ignored="false">
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
<folder name="资源文件" path="res" embed="true" local="false" ignored="false">
<file name="heatmap_script.R" path="res\heatmap_script.R" comment="res\heatmap_script.R"/>
<file name="r_script.aardio" path="res\r_script.aardio" comment="res\r_script.aardio"/>
</folder>
<folder name="窗体文件" path="dlg" comment="目录" embed="true"/>
<folder name="窗体文件" path="dlg" comment="目录" embed="true" local="false" ignored="false">
<file name="test.aardio" path="test.aardio" comment="test.aardio"/>
</folder>
</project>

View File

@ -1,24 +1,40 @@
import fonts.fontAwesome;
import win.ui;
/*DSG{{*/
mainForm = win.form(text="CircosHeatmap-aardio";right=800;bottom=600)
mainForm = win.form(text="CircosHeatmap-aardio";right=800;bottom=600;bgcolor=16777215)
mainForm.add(
btnRun={cls="plus";text="运行";left=740;top=10;right=791;bottom=41;activebgcolor=19354;bgcolor=-5197169;font=LOGFONT(h=-16);hoverbgcolor=23477;textcolor=16777215;z=4};
btnSelectFile={cls="plus";text="选择输入文件";left=608;top=10;right=732;bottom=41;activebgcolor=19354;bgcolor=-5197169;font=LOGFONT(h=-16);hoverbgcolor=23477;textcolor=16777215;z=3};
editConsole={cls="edit";left=10;top=467;right=791;bottom=591;bgcolor=16777215;db=1;dl=1;dr=1;edge=1;hscroll=1;multiline=1;textcolor=0;vscroll=1;z=1};
editRScript={cls="edit";left=10;top=48;right=791;bottom=451;bgcolor=16777215;db=1;dl=1;dr=1;dt=1;edge=1;hscroll=1;multiline=1;textcolor=0;vscroll=1;z=5};
inputFile={cls="edit";left=10;top=10;right=600;bottom=40;bgcolor=16777215;edge=1;textcolor=0;z=2}
btnRun={cls="plus";text="生成pdf";left=684;top=413;right=791;bottom=448;align="left";border={color=-16777216;width=1};font=LOGFONT(h=-16;name='微软雅黑');iconStyle={align="left";font=LOGFONT(h=-13;name='FontAwesome');padding={left=15}};iconText='\uF08B';textPadding={left=32};z=3};
btnSelectFile={cls="plus";text="数据源";left=569;top=413;right=676;bottom=448;align="left";border={color=-16777216;width=1};font=LOGFONT(h=-16;name='微软雅黑');iconStyle={align="left";font=LOGFONT(h=-13;name='FontAwesome');padding={left=18}};iconText='\uF15C';textPadding={left=35};z=2};
editConsole={cls="edit";left=10;top=459;right=791;bottom=591;bgcolor=4274224;border=1;color=15326936;hscroll=1;multiline=1;vscroll=1;z=5};
editRScript={cls="edit";left=10;top=10;right=791;bottom=401;border=1;color=4473924;hscroll=1;multiline=1;vscroll=1;z=4};
inputFile={cls="plus";left=10;top=413;right=562;bottom=448;align="left";border={color=-16736064;width=1};editable="edit";font=LOGFONT(h=-13);textPadding={left=5;top=8;right=5;bottom=2};z=1}
)
/*}}*/
btskin = {
mainForm.btnSelectFile.skin({
background={
active=0xFFD3E0BC;
default=0xFF8FB2B0;
hover=0xFF928BB3
active=0xFF5AAEC4;
default=0xFF71D9F5;
disabled=0xFFCCCCCC;
};
color={
active=0xFFFFFFFF;
default=0xFF000000;
disabled=0xFF6D6D6D
}
}
mainForm.btnRun.skin(btskin);
mainForm.btnSelectFile.skin(btskin);
});
mainForm.btnRun.skin({
background={
active=0xFF30BE3F;
default=0xFF7DED7B;
disabled=0xFFCCCCCC;
};
color={
active=0xFFFFFFFF;
default=0xFF000000;
disabled=0xFF6D6D6D
}
});
import console;
import process.r;