qt: add network-specific style object
Mainly cleanups: Gets rid of isTestNet everywhere, by keeping track of network-specific theming in a central place. Also makes GUI no longer dependent on the network ID enumeration, which alleviates concerns about #4802.
This commit is contained in:
committed by
jtimon
parent
dec58922d0
commit
6de50c3c9a
@@ -7,6 +7,8 @@
|
||||
|
||||
#include <QSplashScreen>
|
||||
|
||||
class NetworkStyle;
|
||||
|
||||
/** Class for the splashscreen with information of the running client.
|
||||
*
|
||||
* @note this is intentionally not a QSplashScreen. Bitcoin Core initialization
|
||||
@@ -18,7 +20,7 @@ class SplashScreen : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SplashScreen(Qt::WindowFlags f, bool isTestNet);
|
||||
explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle);
|
||||
~SplashScreen();
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user