-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,947 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<!DOCTYPE RCC> | ||
<RCC version="1.0"> | ||
<qresource prefix="/resource"> | ||
<file alias="images/clean.png">./resource/images/clean.png</file> | ||
<file alias="images/lcxs.jpg">./resource/images/lcxs.jpg</file> | ||
<file alias="images/owl.png">./resource/images/owl.png</file> | ||
<file alias="qss/about.qss.css">./resource/qss/about.qss.css</file> | ||
<file alias="qss/main.qss.css">./resource/qss/main.qss.css</file> | ||
<file alias="qss/search.qss.css">./resource/qss/search.qss.css</file> | ||
</qresource> | ||
</RCC> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
QWidget#about { | ||
background-color: #39668b; | ||
} | ||
|
||
QLabel { | ||
color: #fff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
QLineEdit#line_novels_name { | ||
border: 1px solid #AFB5BB; | ||
border-radius: 5px; | ||
height: 25px; | ||
line-height: 25px; | ||
font-size: 10px; | ||
background: transparent; | ||
} | ||
|
||
QPushButton#btn_search { | ||
background-color: #39668b; | ||
color: #ffffff; | ||
border-radius: 5px; | ||
border-style: none; | ||
width: 45px; | ||
height: 25px; | ||
font-size: 12px; | ||
} | ||
|
||
/*QLineEdit#line_novels_name:focus {*/ | ||
/*border: none;*/ | ||
/*outline: medium;*/ | ||
/*}*/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Created by howie.hu at 2018/6/6. | ||
""" | ||
|
||
from PyQt5 import QtWidgets, QtGui | ||
|
||
from owllook_gui.config import Config | ||
from owllook_gui.owl_resource import * | ||
|
||
from owllook_gui.wigdets.wigdets_tools import load_style_sheet | ||
|
||
|
||
class About(QtWidgets.QWidget): | ||
def __init__(self, parent=None): | ||
super().__init__(parent=parent) | ||
self.init_ui() | ||
|
||
def init_ui(self): | ||
# 加载样式 | ||
load_style_sheet(self, 'about') | ||
|
||
self.setWindowTitle("关于") | ||
self.setObjectName('about') | ||
self.name_label = QtWidgets.QLabel("版本:owllook - v{}".format(Config.VERSION)) | ||
self.img_label = QtWidgets.QLabel() | ||
self.img_label.setPixmap(QtGui.QPixmap(":/resource/images/lcxs.jpg")) | ||
self.img_label.setAlignment(QtCore.Qt.AlignCenter) | ||
self.author_label = QtWidgets.QLabel( | ||
"作者:<a style='color:#78a5f1;' href='https://github.com/howie6879'>howie6879</a>") | ||
self.author_label.setOpenExternalLinks(True) | ||
self.home_label = QtWidgets.QLabel( | ||
"项目地址:<a style='color:#78a5f1;' href='https://github.com/howie6879/owllook_gui'>owllook_gui</a>") | ||
self.home_label.setOpenExternalLinks(True) | ||
self.dept_label = QtWidgets.QLabel("简介:简洁优雅的小说监控工具 🎉,喜欢就微信扫一扫一起交流吧") | ||
self.dept_label.setWordWrap(True) | ||
|
||
self.box = QtWidgets.QVBoxLayout() | ||
self.box.addWidget(self.img_label) | ||
self.box.addWidget(self.name_label) | ||
self.box.addWidget(self.author_label) | ||
self.box.addWidget(self.home_label) | ||
self.box.addWidget(self.dept_label) | ||
|
||
self.setLayout(self.box) | ||
self.resize(300, 400) | ||
|
||
def closeEvent(self, event): | ||
self.hide() | ||
event.ignore() | ||
|
||
|
||
if __name__ == '__main__': | ||
import sys | ||
|
||
app = QtWidgets.QApplication(sys.argv) | ||
win = About() | ||
win.show() | ||
sys.exit(app.exec_()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.