|
a/HelperStructs/Style.h |
|
b/HelperStructs/Style.h |
|
... |
|
... |
19 |
|
19 |
|
20 |
#ifndef STYLE_H_
|
20 |
#ifndef STYLE_H_
|
21 |
#define STYLE_H_
|
21 |
#define STYLE_H_
|
22 |
|
22 |
|
23 |
#include <QString>
|
23 |
#include <QString>
|
24 |
#include <QPalette>
|
|
|
25 |
#include <string>
|
24 |
#include <string>
|
26 |
|
25 |
|
27 |
namespace Style {
|
26 |
namespace Style {
|
28 |
|
27 |
|
|
|
28 |
/** Retrieve the application qss style sheet, read from disk, adjusted
|
|
|
29 |
* for color style and scale */
|
29 |
QString get_style(bool dark, float multiplier = 1.0);
|
30 |
QString get_style(bool dark, float multiplier = 1.0);
|
30 |
|
31 |
|
|
|
32 |
/** Adjust font-size lines in input CSS/QSS string according to
|
|
|
33 |
multiplier. Only touches fonts given in 'pt' units, and the
|
|
|
34 |
directives must each happen in their own line. */
|
31 |
std::string scale_fonts(const std::string& style, float multiplier);
|
35 |
std::string scale_fonts(const std::string& style, float multiplier);
|
32 |
|
36 |
|
33 |
};
|
37 |
};
|
34 |
|
38 |
|
35 |
|
39 |
|