Bugfixes. Package working
This commit is contained in:
parent
e6390a3927
commit
6be2e8e6e8
|
@ -142,11 +142,13 @@ class UninstalledGameWidget(QWidget):
|
||||||
self.version = game.app_version
|
self.version = game.app_version
|
||||||
self.layout = QHBoxLayout()
|
self.layout = QHBoxLayout()
|
||||||
self.game = game
|
self.game = game
|
||||||
|
if os.path.exists(f"{IMAGE_DIR}/{game.app_name}/UninstalledArt.png"):
|
||||||
pixmap = QPixmap(f"{IMAGE_DIR}/{game.app_name}/UninstalledArt.png")
|
pixmap = QPixmap(f"{IMAGE_DIR}/{game.app_name}/UninstalledArt.png")
|
||||||
pixmap = pixmap.scaled(120, 160)
|
pixmap = pixmap.scaled(120, 160)
|
||||||
self.image = QLabel()
|
self.image = QLabel()
|
||||||
self.image.setPixmap(pixmap)
|
self.image.setPixmap(pixmap)
|
||||||
|
else:
|
||||||
|
print(os.listdir(IMAGE_DIR)/game.app_name)
|
||||||
|
|
||||||
self.child_layout = QVBoxLayout()
|
self.child_layout = QVBoxLayout()
|
||||||
|
|
||||||
|
|
|
@ -1,258 +1,260 @@
|
||||||
/*Copyright (c) DevSec Studio. All rights reserved.
|
obit = """
|
||||||
|
/*Copyright (c) DevSec Studio. All rights reserved.
|
||||||
MIT License
|
|
||||||
|
MIT License
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
in the Software without restriction, including without limitation the rights
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
in the Software without restriction, including without limitation the rights
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
furnished to do so, subject to the following conditions:
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
*/
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
/*-----QWidget-----*/
|
|
||||||
QWidget
|
/*-----QWidget-----*/
|
||||||
{
|
QWidget
|
||||||
background-color: #232430;
|
{
|
||||||
color: #000000;
|
background-color: #232430;
|
||||||
border-color: #000000;
|
color: #000000;
|
||||||
|
border-color: #000000;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
/*-----QLabel-----*/
|
|
||||||
QLabel
|
/*-----QLabel-----*/
|
||||||
{
|
QLabel
|
||||||
background-color: #232430;
|
{
|
||||||
color: #c1c1c1;
|
background-color: #232430;
|
||||||
border-color: #000000;
|
color: #c1c1c1;
|
||||||
|
border-color: #000000;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
/*-----QPushButton-----*/
|
|
||||||
QPushButton
|
/*-----QPushButton-----*/
|
||||||
{
|
QPushButton
|
||||||
background-color: #ff9c2b;
|
{
|
||||||
color: #000000;
|
background-color: #ff9c2b;
|
||||||
font-weight: bold;
|
color: #000000;
|
||||||
border-style: solid;
|
font-weight: bold;
|
||||||
border-color: #000000;
|
border-style: solid;
|
||||||
padding: 6px;
|
border-color: #000000;
|
||||||
|
padding: 6px;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QPushButton::hover
|
|
||||||
{
|
QPushButton::hover
|
||||||
background-color: #ffaf5d;
|
{
|
||||||
|
background-color: #ffaf5d;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QPushButton::pressed
|
|
||||||
{
|
QPushButton::pressed
|
||||||
background-color: #dd872f;
|
{
|
||||||
|
background-color: #dd872f;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
/*-----QToolButton-----*/
|
|
||||||
QToolButton
|
/*-----QToolButton-----*/
|
||||||
{
|
QToolButton
|
||||||
background-color: #ff9c2b;
|
{
|
||||||
color: #000000;
|
background-color: #ff9c2b;
|
||||||
font-weight: bold;
|
color: #000000;
|
||||||
border-style: solid;
|
font-weight: bold;
|
||||||
border-color: #000000;
|
border-style: solid;
|
||||||
padding: 6px;
|
border-color: #000000;
|
||||||
|
padding: 6px;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QToolButton::hover
|
|
||||||
{
|
QToolButton::hover
|
||||||
background-color: #ffaf5d;
|
{
|
||||||
|
background-color: #ffaf5d;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QToolButton::pressed
|
|
||||||
{
|
QToolButton::pressed
|
||||||
background-color: #dd872f;
|
{
|
||||||
|
background-color: #dd872f;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
/*-----QLineEdit-----*/
|
|
||||||
QLineEdit
|
/*-----QLineEdit-----*/
|
||||||
{
|
QLineEdit
|
||||||
background-color: #38394e;
|
{
|
||||||
color: #c1c1c1;
|
background-color: #38394e;
|
||||||
border-style: solid;
|
color: #c1c1c1;
|
||||||
border-width: 1px;
|
border-style: solid;
|
||||||
border-color: #4a4c68;
|
border-width: 1px;
|
||||||
|
border-color: #4a4c68;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
/*-----QTableView-----*/
|
|
||||||
QTableView,
|
/*-----QTableView-----*/
|
||||||
QHeaderView,
|
QTableView,
|
||||||
QTableView::item
|
QHeaderView,
|
||||||
{
|
QTableView::item
|
||||||
background-color: #232430;
|
{
|
||||||
color: #c1c1c1;
|
background-color: #232430;
|
||||||
border: none;
|
color: #c1c1c1;
|
||||||
|
border: none;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTableView::item:selected
|
|
||||||
{
|
QTableView::item:selected
|
||||||
background-color: #41424e;
|
{
|
||||||
color: #c1c1c1;
|
background-color: #41424e;
|
||||||
|
color: #c1c1c1;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QHeaderView::section:horizontal
|
|
||||||
{
|
QHeaderView::section:horizontal
|
||||||
background-color: #232430;
|
{
|
||||||
border: 1px solid #37384d;
|
background-color: #232430;
|
||||||
padding: 5px;
|
border: 1px solid #37384d;
|
||||||
|
padding: 5px;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTableView::indicator{
|
|
||||||
background-color: #1d1d28;
|
QTableView::indicator{
|
||||||
border: 1px solid #37384d;
|
background-color: #1d1d28;
|
||||||
|
border: 1px solid #37384d;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTableView::indicator:checked{
|
|
||||||
image:url("./ressources/check.png"); /*To replace*/
|
QTableView::indicator:checked{
|
||||||
background-color: #1d1d28;
|
image:url("./ressources/check.png"); /*To replace*/
|
||||||
|
background-color: #1d1d28;
|
||||||
}
|
|
||||||
|
}
|
||||||
/*-----QTabWidget-----*/
|
|
||||||
QTabWidget::pane
|
/*-----QTabWidget-----*/
|
||||||
{
|
QTabWidget::pane
|
||||||
border: none;
|
{
|
||||||
|
border: none;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTabWidget::tab-bar
|
|
||||||
{
|
QTabWidget::tab-bar
|
||||||
left: 5px;
|
{
|
||||||
|
left: 5px;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTabBar::tab
|
|
||||||
{
|
QTabBar::tab
|
||||||
color: #c1c1c1;
|
{
|
||||||
min-width: 1px;
|
color: #c1c1c1;
|
||||||
padding-left: 25px;
|
min-width: 1px;
|
||||||
margin-left:-22px;
|
padding-left: 25px;
|
||||||
height: 28px;
|
margin-left:-22px;
|
||||||
border: none;
|
height: 28px;
|
||||||
|
border: none;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTabBar::tab:selected
|
|
||||||
{
|
QTabBar::tab:selected
|
||||||
color: #c1c1c1;
|
{
|
||||||
font-weight: bold;
|
color: #c1c1c1;
|
||||||
height: 28px;
|
font-weight: bold;
|
||||||
|
height: 28px;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTabBar::tab:!first
|
|
||||||
{
|
QTabBar::tab:!first
|
||||||
margin-left: -20px;
|
{
|
||||||
|
margin-left: -20px;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QTabBar::tab:hover
|
|
||||||
{
|
QTabBar::tab:hover
|
||||||
color: #DDD;
|
{
|
||||||
|
color: #DDD;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
/*-----QScrollBar-----*/
|
|
||||||
QScrollBar:horizontal
|
/*-----QScrollBar-----*/
|
||||||
{
|
QScrollBar:horizontal
|
||||||
background-color: transparent;
|
{
|
||||||
height: 8px;
|
background-color: transparent;
|
||||||
margin: 0px;
|
height: 8px;
|
||||||
padding: 0px;
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QScrollBar::handle:horizontal
|
|
||||||
{
|
QScrollBar::handle:horizontal
|
||||||
border: none;
|
{
|
||||||
min-width: 100px;
|
border: none;
|
||||||
background-color: #56576c;
|
min-width: 100px;
|
||||||
|
background-color: #56576c;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QScrollBar::add-line:horizontal,
|
|
||||||
QScrollBar::sub-line:horizontal,
|
QScrollBar::add-line:horizontal,
|
||||||
QScrollBar::add-page:horizontal,
|
QScrollBar::sub-line:horizontal,
|
||||||
QScrollBar::sub-page:horizontal
|
QScrollBar::add-page:horizontal,
|
||||||
{
|
QScrollBar::sub-page:horizontal
|
||||||
width: 0px;
|
{
|
||||||
background-color: transparent;
|
width: 0px;
|
||||||
|
background-color: transparent;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QScrollBar:vertical
|
|
||||||
{
|
QScrollBar:vertical
|
||||||
background-color: transparent;
|
{
|
||||||
width: 8px;
|
background-color: transparent;
|
||||||
margin: 0;
|
width: 8px;
|
||||||
|
margin: 0;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QScrollBar::handle:vertical
|
|
||||||
{
|
QScrollBar::handle:vertical
|
||||||
border: none;
|
{
|
||||||
min-height: 100px;
|
border: none;
|
||||||
background-color: #56576c;
|
min-height: 100px;
|
||||||
|
background-color: #56576c;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
QScrollBar::add-line:vertical,
|
|
||||||
QScrollBar::sub-line:vertical,
|
QScrollBar::add-line:vertical,
|
||||||
QScrollBar::add-page:vertical,
|
QScrollBar::sub-line:vertical,
|
||||||
QScrollBar::sub-page:vertical
|
QScrollBar::add-page:vertical,
|
||||||
{
|
QScrollBar::sub-page:vertical
|
||||||
height: 0px;
|
{
|
||||||
background-color: transparent;
|
height: 0px;
|
||||||
|
background-color: transparent;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
"""
|
|
@ -1,2 +1,2 @@
|
||||||
dark = open("Styles/dark.qss").read()
|
from Rare.Styles.dark import dark
|
||||||
obit = open("Styles/Obit.qss").read()
|
from Rare.Styles.Obit import obit
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
dark="""
|
||||||
/* ---------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------
|
||||||
|
|
||||||
Created by the qtsass compiler v0.1.1
|
Created by the qtsass compiler v0.1.1
|
||||||
|
@ -2172,4 +2173,5 @@ QAbstractView:selected {
|
||||||
PlotWidget {
|
PlotWidget {
|
||||||
/* Fix cut labels in plots #134 */
|
/* Fix cut labels in plots #134 */
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
"""
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.0.3"
|
__version__ = "0.2.3"
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -14,7 +14,7 @@ setuptools.setup(
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="https://github.com/Dummerle/Rare",
|
url="https://github.com/Dummerle/Rare",
|
||||||
packages=["Rare", "Rare.utils", "Rare.Styles"],
|
packages=["Rare", "Rare.Styles", "Rare.utils"],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
|
@ -27,7 +27,7 @@ setuptools.setup(
|
||||||
"legendary-gl",
|
"legendary-gl",
|
||||||
"requests<3.0",
|
"requests<3.0",
|
||||||
"pillow",
|
"pillow",
|
||||||
"PyQtWebEngine",
|
"pyqtwebengine",
|
||||||
"setuptools",
|
"setuptools",
|
||||||
"wheel"
|
"wheel"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue