Kaydet (Commit) 69c9acd4 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#92776 ensure correct notebook tab font color

despite various theme layout differences

Change-Id: I209258583571b57b2b7869937fa4821855125eac
üst 27466acb
......@@ -33,6 +33,7 @@
enum class GtkControlPart
{
ToplevelWindow,
Button,
LinkButton,
CheckButton,
......@@ -72,6 +73,9 @@ enum class GtkControlPart
NotebookStack,
NotebookHeaderTabs,
NotebookHeaderTabsTab,
NotebookHeaderTabsTabLabel,
NotebookHeaderTabsTabActiveLabel,
NotebookHeaderTabsTabHoverLabel,
FrameBorder,
MenuBar,
MenuBarItem,
......@@ -118,10 +122,13 @@ public:
virtual void GetResolution(sal_Int32& rDPIX, sal_Int32& rDPIY) override;
static GtkStyleContext* createNewContext(GtkControlPart ePart, gtk_widget_path_iter_set_object_nameFunc set_object_name);
static GtkStyleContext* createOldContext(GtkControlPart ePart);
GtkStyleContext* createStyleContext(gtk_widget_path_iter_set_object_nameFunc set_object_name, GtkControlPart ePart);
GtkStyleContext* createNewContext(GtkControlPart ePart, gtk_widget_path_iter_set_object_nameFunc set_object_name);
GtkStyleContext* createOldContext(GtkControlPart ePart);
GtkStyleContext* makeContext(GtkWidgetPath *pPath, GtkStyleContext *pParent);
private:
GtkWidget *mpWindow;
static GtkStyleContext *mpWindowStyle;
static GtkStyleContext *mpButtonStyle;
static GtkStyleContext *mpLinkButtonStyle;
static GtkStyleContext *mpEntryStyle;
......@@ -171,6 +178,8 @@ private:
static GtkStyleContext *mpNotebookHeaderTabsStyle;
static GtkStyleContext *mpNotebookHeaderTabsTabStyle;
static GtkStyleContext *mpNotebookHeaderTabsTabLabelStyle;
static GtkStyleContext *mpNotebookHeaderTabsTabActiveLabelStyle;
static GtkStyleContext *mpNotebookHeaderTabsTabHoverLabelStyle;
static GtkStyleContext *mpMenuBarStyle;
static GtkStyleContext *mpMenuBarItemStyle;
static GtkStyleContext *mpMenuWindowStyle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment