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