restructured css and icon to link together

This commit is contained in:
itsmattkc
2019-07-15 00:20:03 -04:00
parent 944e933762
commit 33f9f9dbc4
505 changed files with 427 additions and 442 deletions
+3 -2
View File
@@ -31,13 +31,14 @@
void olive::style::AppSetDefault()
{
SetOliveStyle("olive-light");
// FIXME: Fixed theme, allow the user to set this in-app
SetOliveStyle("olive-dark");
}
void olive::style::SetOliveStyle(const QString &style_name)
{
// Set CSS style for this
QFile css_file(QString(":/css/%1.css").arg(style_name));
QFile css_file(QString(":/style/%1/style.css").arg(style_name));
if (css_file.open(QFile::ReadOnly | QFile::Text)) {
// Read in entire CSS from file and set as the application stylesheet