[UI] Fixed UI on KDE.
This commit is contained in:
parent
84fb93f336
commit
9f3d8d9e06
|
@ -25,6 +25,7 @@
|
|||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
setenv("QT_QUICK_CONTROLS_STYLE","Desktop",1);
|
||||
QApplication app(argc, argv);
|
||||
app.setOrganizationName("KittehPlayer");
|
||||
app.setOrganizationDomain("namedkitten.pw");
|
||||
|
@ -48,8 +49,8 @@ int main( int argc, char *argv[] )
|
|||
|
||||
QString newpath = QProcessEnvironment::systemEnvironment().value("APPDIR", "") + "/usr/bin:" + QProcessEnvironment::systemEnvironment().value("PATH", "");
|
||||
|
||||
qDebug() << newpath;
|
||||
setenv("Path", newpath.toUtf8().constData(), 1);
|
||||
setenv("QT_QUICK_CONTROLS_STYLE","Desktop",1);
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
qmlRegisterType<MpvObject>("player", 1, 0, "MpvObject");
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ ApplicationWindow {
|
|||
visible: true
|
||||
width: 720
|
||||
height: 480
|
||||
|
||||
color: "white"
|
||||
FontLoader {
|
||||
id: notoFont
|
||||
source: "fonts/NotoSans.ttf"
|
||||
|
|
Loading…
Reference in a new issue