Skip to content

Commit c8b1c8c

Browse files
committed
docs: add logo
1 parent c7396d3 commit c8b1c8c

10 files changed

Lines changed: 1109 additions & 84 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ else()
5555
target_link_libraries(${PROJECT_NAME} MonitorInfo)
5656
endif()
5757

58-
install(FILES "NetSpeed.json" DESTINATION "/usr/share/NetSpeed")
58+
install(FILES "./resource/data/NetSpeed.json" DESTINATION "/usr/share/NetSpeed")

WinHoverNet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void WinHoverNet::init()
9696
m_info->netInfo(m_upload, m_down);
9797
m_info->cpuInfo(m_vec);
9898

99-
setSingleInstance(); // 注册
99+
setSingleInstance(); // 注册 DBus
100100
}
101101

102102
void WinHoverNet::initSigConnect()

WinSetting.ui

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<bool>false</bool>
3333
</property>
3434
<property name="currentIndex">
35-
<number>1</number>
35+
<number>2</number>
3636
</property>
3737
<widget class="QWidget" name="tabPersonalization">
3838
<attribute name="title">
@@ -771,10 +771,36 @@
771771
<string>About</string>
772772
</attribute>
773773
<layout class="QVBoxLayout" name="verticalLayout_4">
774+
<item>
775+
<widget class="QLabel" name="labLogo">
776+
<property name="text">
777+
<string/>
778+
</property>
779+
<property name="pixmap">
780+
<pixmap resource="resources.qrc">:/resource/images/NetSpeed.svg</pixmap>
781+
</property>
782+
<property name="alignment">
783+
<set>Qt::AlignCenter</set>
784+
</property>
785+
</widget>
786+
</item>
787+
<item>
788+
<spacer name="verticalSpacer_5">
789+
<property name="orientation">
790+
<enum>Qt::Vertical</enum>
791+
</property>
792+
<property name="sizeHint" stdset="0">
793+
<size>
794+
<width>20</width>
795+
<height>120</height>
796+
</size>
797+
</property>
798+
</spacer>
799+
</item>
774800
<item>
775801
<widget class="QLabel" name="label_7">
776802
<property name="text">
777-
<string>&lt;a href=&quot;https://github.com/xmuli/NetSpeed&quot;&gt;NetSpeed</string>
803+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/xmuli/NetSpeed&quot;&gt;&lt;span style=&quot; font-size:16pt; text-decoration: underline; color:#007af4;&quot;&gt;NetSpeed&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
778804
</property>
779805
<property name="alignment">
780806
<set>Qt::AlignCenter</set>
@@ -805,7 +831,7 @@
805831
<item>
806832
<widget class="QLabel" name="labIntroduction">
807833
<property name="text">
808-
<string>Hovering speed window for all Linux distributions (with DDE-DOCK network speed plugin)</string>
834+
<string>A lightweight real-time Internet speed hover window.</string>
809835
</property>
810836
<property name="wordWrap">
811837
<bool>true</bool>
@@ -1035,6 +1061,8 @@
10351061
</item>
10361062
</layout>
10371063
</widget>
1038-
<resources/>
1064+
<resources>
1065+
<include location="resources.qrc"/>
1066+
</resources>
10391067
<connections/>
10401068
</ui>

0 commit comments

Comments
 (0)