diff --git a/src/main/java/com/luoboduner/moo/info/ui/form/OverviewForm.java b/src/main/java/com/luoboduner/moo/info/ui/form/OverviewForm.java index 40f84a6..0c6c3be 100644 --- a/src/main/java/com/luoboduner/moo/info/ui/form/OverviewForm.java +++ b/src/main/java/com/luoboduner/moo/info/ui/form/OverviewForm.java @@ -89,7 +89,15 @@ public class OverviewForm { Style.emphaticLabelFont(overviewForm.getPowerSourceLabel()); Style.emphaticLabelFont(overviewForm.getFirmwareLabel()); -// overviewForm.getCpuLabel().setIcon(new FlatSVGIcon("icons/cpu.svg")); + overviewForm.getCpuLabel().setIcon(new FlatSVGIcon("icons/cpu.svg")); + overviewForm.getMemoryLabel().setIcon(new FlatSVGIcon("icons/memory.svg")); + overviewForm.getGraphicsCardLabel().setIcon(new FlatSVGIcon("icons/graphicsCard.svg")); + overviewForm.getBaseBoardLabel().setIcon(new FlatSVGIcon("icons/baseboard.svg")); + overviewForm.getDiskStorageLabel().setIcon(new FlatSVGIcon("icons/hardDisk.svg")); + overviewForm.getDisplayLabel().setIcon(new FlatSVGIcon("icons/display.svg")); + overviewForm.getSoundCardLabel().setIcon(new FlatSVGIcon("icons/sound.svg")); + overviewForm.getPowerSourceLabel().setIcon(new FlatSVGIcon("icons/battery.svg")); + overviewForm.getFirmwareLabel().setIcon(new FlatSVGIcon("icons/firmware.svg")); } private static void initInfo() { diff --git a/src/main/java/com/luoboduner/moo/info/ui/frame/MainFrame.java b/src/main/java/com/luoboduner/moo/info/ui/frame/MainFrame.java index 93aca87..cd2ee92 100644 --- a/src/main/java/com/luoboduner/moo/info/ui/frame/MainFrame.java +++ b/src/main/java/com/luoboduner/moo/info/ui/frame/MainFrame.java @@ -24,7 +24,7 @@ public class MainFrame extends JFrame { TopMenuBar topMenuBar = TopMenuBar.getInstance(); topMenuBar.init(); setJMenuBar(topMenuBar); - ComponentUtil.setPreferSizeAndLocateToCenter(this, 0.6, 0.68); + ComponentUtil.setPreferSizeAndLocateToCenter(this, 0.6, 0.8); } /** diff --git a/src/main/resources/icons/baseboard.svg b/src/main/resources/icons/baseboard.svg new file mode 100644 index 0000000..faba8c5 --- /dev/null +++ b/src/main/resources/icons/baseboard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/icons/battery.svg b/src/main/resources/icons/battery.svg new file mode 100644 index 0000000..f1de242 --- /dev/null +++ b/src/main/resources/icons/battery.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/icons/cpu.svg b/src/main/resources/icons/cpu.svg index 90646cb..9418052 100644 --- a/src/main/resources/icons/cpu.svg +++ b/src/main/resources/icons/cpu.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/main/resources/icons/display.svg b/src/main/resources/icons/display.svg new file mode 100644 index 0000000..9047e84 --- /dev/null +++ b/src/main/resources/icons/display.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/icons/firmware.svg b/src/main/resources/icons/firmware.svg new file mode 100644 index 0000000..2e3cd80 --- /dev/null +++ b/src/main/resources/icons/firmware.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/icons/graphicsCard.svg b/src/main/resources/icons/graphicsCard.svg new file mode 100644 index 0000000..0e91829 --- /dev/null +++ b/src/main/resources/icons/graphicsCard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/icons/hardDisk.svg b/src/main/resources/icons/hardDisk.svg new file mode 100644 index 0000000..ec1e700 --- /dev/null +++ b/src/main/resources/icons/hardDisk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/icons/memory.svg b/src/main/resources/icons/memory.svg new file mode 100644 index 0000000..26482cc --- /dev/null +++ b/src/main/resources/icons/memory.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main/resources/icons/sound.svg b/src/main/resources/icons/sound.svg new file mode 100644 index 0000000..9ad82c8 --- /dev/null +++ b/src/main/resources/icons/sound.svg @@ -0,0 +1 @@ + \ No newline at end of file