Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
2e1a802d
Commit
2e1a802d
authored
Jun 23, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(Colors): add linphone friday colors
parent
4e732051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
Colors.cpp
src/components/other/colors/Colors.cpp
+25
-1
No files found.
src/components/other/colors/Colors.cpp
View file @
2e1a802d
...
@@ -29,11 +29,35 @@
...
@@ -29,11 +29,35 @@
#define COLORS_SECTION "ui_colors"
#define COLORS_SECTION "ui_colors"
#ifndef LINPHONE_FRIDAY
#define LINPHONE_FRIDAY 1
#endif // ifndef LINPHONE_FRIDAY
#if LINPHONE_FRIDAY
#include <QDate>
#endif // if LINPHONE_FRIDAY
using
namespace
std
;
using
namespace
std
;
// =============================================================================
// =============================================================================
Colors
::
Colors
(
QObject
*
parent
)
:
QObject
(
parent
)
{}
#if LINPHONE_FRIDAY
static
void
setLinphoneFridayColors
(
Colors
&
colors
)
{
colors
.
setProperty
(
"i"
,
QColor
(
"#F48D8D"
));
colors
.
setProperty
(
"s"
,
QColor
(
"#F58585"
));
colors
.
setProperty
(
"t"
,
QColor
(
"#FFC5C5"
));
}
#endif // if LINPHONE_FRIDAY
Colors
::
Colors
(
QObject
*
parent
)
:
QObject
(
parent
)
{
#if LINPHONE_FRIDAY
if
(
QDate
::
currentDate
().
dayOfWeek
()
==
5
)
::
setLinphoneFridayColors
(
*
this
);
#endif // if LINPHONE_FRIDAY
}
void
Colors
::
useConfig
(
const
std
::
shared_ptr
<
linphone
::
Config
>
&
config
)
{
void
Colors
::
useConfig
(
const
std
::
shared_ptr
<
linphone
::
Config
>
&
config
)
{
overrideColors
(
config
);
overrideColors
(
config
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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