Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
dfe97196
Commit
dfe97196
authored
Sep 13, 2015
by
Fabio Bas
Browse files
Removed unused parameter
parent
00e3e63f
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/thememanager.cpp
View file @
dfe97196
...
@@ -74,7 +74,7 @@ QStringMap & ThemeManager::getAvailableThemes()
...
@@ -74,7 +74,7 @@ QStringMap & ThemeManager::getAvailableThemes()
return
availableThemes
;
return
availableThemes
;
}
}
QBrush
ThemeManager
::
loadBrush
(
QDir
dir
,
QString
fileName
,
QColor
fallbackColor
)
QBrush
ThemeManager
::
loadBrush
(
QString
fileName
,
QColor
fallbackColor
)
{
{
QBrush
brush
;
QBrush
brush
;
QPixmap
tmp
=
QPixmap
(
"theme:zones/"
+
fileName
);
QPixmap
tmp
=
QPixmap
(
"theme:zones/"
+
fileName
);
...
@@ -110,10 +110,10 @@ void ThemeManager::themeChangedSlot()
...
@@ -110,10 +110,10 @@ void ThemeManager::themeChangedSlot()
// zones bg
// zones bg
dir
.
cd
(
"zones"
);
dir
.
cd
(
"zones"
);
handBgBrush
=
loadBrush
(
dir
,
HANDZONE_BG_NAME
,
QColor
(
80
,
100
,
50
));
handBgBrush
=
loadBrush
(
HANDZONE_BG_NAME
,
QColor
(
80
,
100
,
50
));
tableBgBrush
=
loadBrush
(
dir
,
TABLEZONE_BG_NAME
,
QColor
(
70
,
50
,
100
));
tableBgBrush
=
loadBrush
(
TABLEZONE_BG_NAME
,
QColor
(
70
,
50
,
100
));
playerBgBrush
=
loadBrush
(
dir
,
PLAYERZONE_BG_NAME
,
QColor
(
200
,
200
,
200
));
playerBgBrush
=
loadBrush
(
PLAYERZONE_BG_NAME
,
QColor
(
200
,
200
,
200
));
stackBgBrush
=
loadBrush
(
dir
,
STACKZONE_BG_NAME
,
QColor
(
113
,
43
,
43
));
stackBgBrush
=
loadBrush
(
STACKZONE_BG_NAME
,
QColor
(
113
,
43
,
43
));
emit
themeChanged
();
emit
themeChanged
();
...
...
cockatrice/src/thememanager.h
View file @
dfe97196
...
@@ -21,7 +21,7 @@ private:
...
@@ -21,7 +21,7 @@ private:
QStringMap
availableThemes
;
QStringMap
availableThemes
;
protected:
protected:
void
ensureThemeDirectoryExists
();
void
ensureThemeDirectoryExists
();
QBrush
loadBrush
(
QDir
dir
,
QString
fileName
,
QColor
fallbackColor
);
QBrush
loadBrush
(
QString
fileName
,
QColor
fallbackColor
);
public:
public:
QBrush
&
getHandBgBrush
()
{
return
handBgBrush
;
}
QBrush
&
getHandBgBrush
()
{
return
handBgBrush
;
}
QBrush
&
getStackBgBrush
()
{
return
stackBgBrush
;
}
QBrush
&
getStackBgBrush
()
{
return
stackBgBrush
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment