|
a/HelperStructs/Style.cpp |
|
b/HelperStructs/Style.cpp |
|
... |
|
... |
21 |
|
21 |
|
22 |
#include "HelperStructs/Helper.h"
|
22 |
#include "HelperStructs/Helper.h"
|
23 |
#include "HelperStructs/Style.h"
|
23 |
#include "HelperStructs/Style.h"
|
24 |
|
24 |
|
25 |
|
25 |
|
26 |
#define NEWLINE "\n";
|
|
|
27 |
|
|
|
28 |
QString Style::get_style(bool dark)
|
26 |
QString Style::get_style(bool dark)
|
29 |
{
|
27 |
{
|
|
|
28 |
QString commonstyle;
|
|
|
29 |
Helper::read_file_into_str(Helper::getSharePath() + "/common.css",
|
|
|
30 |
&commonstyle);
|
30 |
QString style;
|
31 |
QString style;
|
31 |
|
|
|
32 |
if (!dark) {
|
32 |
if (!dark) {
|
33 |
Helper::read_file_into_str(Helper::getSharePath() + "/standard.css",
|
33 |
Helper::read_file_into_str(Helper::getSharePath() + "/standard.css",
|
34 |
&style);
|
34 |
&style);
|
35 |
} else {
|
35 |
} else {
|
36 |
Helper::read_file_into_str(Helper::getSharePath() + "/dark.css", &style);
|
36 |
Helper::read_file_into_str(Helper::getSharePath() + "/dark.css",
|
|
|
37 |
&style);
|
37 |
}
|
38 |
}
|
38 |
|
39 |
|
39 |
return style;
|
40 |
return commonstyle + style;
|
40 |
}
|
41 |
}
|
41 |
|
42 |
|
42 |
|
43 |
|
43 |
QString Style::get_tv_style(bool /*dark*/, QPalette*)
|
44 |
QString Style::get_tv_style(bool /*dark*/, QPalette*)
|
44 |
{
|
45 |
{
|