Theme does not depend on GUIPrefs...
...breaks cycle of 6, still Theme in a cycle with ImageManipulation
This commit is contained in:
parent
fa4d35296e
commit
0eafcd112b
|
@ -77,7 +77,6 @@ can't be.
|
|||
#include "Prefs.h"
|
||||
#include "ImageManipulation.h"
|
||||
#include "Internat.h"
|
||||
#include "prefs/GUIPrefs.h"
|
||||
#include "widgets/AudacityMessageBox.h"
|
||||
|
||||
// JKC: First get the MAC specific images.
|
||||
|
@ -1299,4 +1298,39 @@ void auStaticText::OnPaint(wxPaintEvent & WXUNUSED(evt))
|
|||
dc.DrawText( GetLabel(), 0,0);
|
||||
}
|
||||
|
||||
constexpr int defaultTheme =
|
||||
#ifdef EXPERIMENTAL_DA
|
||||
2 // "dark"
|
||||
#else
|
||||
1 // "light"
|
||||
#endif
|
||||
;
|
||||
|
||||
ChoiceSetting GUITheme{
|
||||
wxT("/GUI/Theme"),
|
||||
{
|
||||
ByColumns,
|
||||
{
|
||||
/* i18n-hint: describing the "classic" or traditional
|
||||
appearance of older versions of Audacity */
|
||||
XO("Classic") ,
|
||||
/* i18n-hint: Light meaning opposite of dark */
|
||||
XO("Light") ,
|
||||
XO("Dark") ,
|
||||
/* i18n-hint: greater difference between foreground and
|
||||
background colors */
|
||||
XO("High Contrast") ,
|
||||
/* i18n-hint: user defined */
|
||||
XO("Custom") ,
|
||||
},
|
||||
{
|
||||
wxT("classic") ,
|
||||
wxT("light") ,
|
||||
wxT("dark") ,
|
||||
wxT("high-contrast") ,
|
||||
wxT("custom") ,
|
||||
}
|
||||
},
|
||||
defaultTheme
|
||||
};
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@ class wxFont;
|
|||
class wxImage;
|
||||
class wxPen;
|
||||
|
||||
class ChoiceSetting;
|
||||
|
||||
// JKC: will probably change name from 'teBmps' to 'tIndexBmp';
|
||||
using teBmps = int; /// The index of a bitmap resource in Theme Resources.
|
||||
|
||||
|
@ -191,4 +193,8 @@ public:
|
|||
|
||||
extern AUDACITY_DLL_API Theme theTheme;
|
||||
|
||||
extern ChoiceSetting
|
||||
GUITheme
|
||||
;
|
||||
|
||||
#endif // __AUDACITY_THEME__
|
||||
|
|
|
@ -139,42 +139,6 @@ ChoiceSetting GUIManualLocation{
|
|||
0 // "Local"
|
||||
};
|
||||
|
||||
constexpr int defaultTheme =
|
||||
#ifdef EXPERIMENTAL_DA
|
||||
2 // "dark"
|
||||
#else
|
||||
1 // "light"
|
||||
#endif
|
||||
;
|
||||
|
||||
ChoiceSetting GUITheme{
|
||||
wxT("/GUI/Theme"),
|
||||
{
|
||||
ByColumns,
|
||||
{
|
||||
/* i18n-hint: describing the "classic" or traditional
|
||||
appearance of older versions of Audacity */
|
||||
XO("Classic") ,
|
||||
/* i18n-hint: Light meaning opposite of dark */
|
||||
XO("Light") ,
|
||||
XO("Dark") ,
|
||||
/* i18n-hint: greater difference between foreground and
|
||||
background colors */
|
||||
XO("High Contrast") ,
|
||||
/* i18n-hint: user defined */
|
||||
XO("Custom") ,
|
||||
},
|
||||
{
|
||||
wxT("classic") ,
|
||||
wxT("light") ,
|
||||
wxT("dark") ,
|
||||
wxT("high-contrast") ,
|
||||
wxT("custom") ,
|
||||
}
|
||||
},
|
||||
defaultTheme
|
||||
};
|
||||
|
||||
void GUIPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.SetBorder(2);
|
||||
|
|
|
@ -70,7 +70,6 @@ int ShowClippingPrefsID();
|
|||
|
||||
extern ChoiceSetting
|
||||
GUIManualLocation
|
||||
, GUITheme
|
||||
;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue