Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
evolution
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GNOME
evolution
Commits
8f3d5862
Commit
8f3d5862
authored
2 years ago
by
Milan Crha
Browse files
Options
Downloads
Patches
Plain Diff
eds-I#494 - Update default calendar colors
Related to
https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/494
parent
91db4ba4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/calendar/gui/e-cal-model.c
+13
-10
13 additions, 10 deletions
src/calendar/gui/e-cal-model.c
src/e-util/e-cal-source-config.c
+13
-10
13 additions, 10 deletions
src/e-util/e-cal-source-config.c
with
26 additions
and
20 deletions
src/calendar/gui/e-cal-model.c
+
13
−
10
View file @
8f3d5862
...
...
@@ -1194,16 +1194,19 @@ cal_model_get_color_for_component (ECalModel *model,
ICalProperty
*
prop
;
static
AssignedColorData
assigned_colors
[]
=
{
{
"#BECEDD"
,
NULL
},
/* 190 206 221 Blue */
{
"#E2F0EF"
,
NULL
},
/* 226 240 239 Light Blue */
{
"#C6E2B7"
,
NULL
},
/* 198 226 183 Green */
{
"#E2F0D3"
,
NULL
},
/* 226 240 211 Light Green */
{
"#E2D4B7"
,
NULL
},
/* 226 212 183 Khaki */
{
"#EAEAC1"
,
NULL
},
/* 234 234 193 Light Khaki */
{
"#F0B8B7"
,
NULL
},
/* 240 184 183 Pink */
{
"#FED4D3"
,
NULL
},
/* 254 212 211 Light Pink */
{
"#E2C6E1"
,
NULL
},
/* 226 198 225 Purple */
{
"#F0E2EF"
,
NULL
}
/* 240 226 239 Light Purple */
/* From the HIG https://developer.gnome.org/hig/reference/palette.html , as of 2023-09-29 */
{
"#62a0ea"
,
NULL
},
/* Blue 2 */
{
"#1c71d8"
,
NULL
},
/* Blue 4 */
{
"#57e389"
,
NULL
},
/* Green 2 */
{
"#2ec27e"
,
NULL
},
/* Green 4 */
{
"#f8e45c"
,
NULL
},
/* Yellow 2 */
{
"#f5c211"
,
NULL
},
/* Yellow 4 */
{
"#ffbe6f"
,
NULL
},
/* Orange 1 */
{
"#ff7800"
,
NULL
},
/* Orange 3 */
{
"#ed333b"
,
NULL
},
/* Red 2 */
{
"#c01c28"
,
NULL
},
/* Red 4 */
{
"#c061cb"
,
NULL
},
/* Purple 2 */
{
"#813d9c"
,
NULL
}
/* Purple 4 */
};
g_return_val_if_fail
(
E_IS_CAL_MODEL
(
model
),
NULL
);
...
...
This diff is collapsed.
Click to expand it.
src/e-util/e-cal-source-config.c
+
13
−
10
View file @
8f3d5862
...
...
@@ -255,16 +255,19 @@ static const gchar *
choose_initial_color
(
void
)
{
static
const
gchar
*
colors
[]
=
{
"#BECEDD"
,
/* 190 206 221 Blue */
"#E2F0EF"
,
/* 226 240 239 Light Blue */
"#C6E2B7"
,
/* 198 226 183 Green */
"#E2F0D3"
,
/* 226 240 211 Light Green */
"#E2D4B7"
,
/* 226 212 183 Khaki */
"#EAEAC1"
,
/* 234 234 193 Light Khaki */
"#F0B8B7"
,
/* 240 184 183 Pink */
"#FED4D3"
,
/* 254 212 211 Light Pink */
"#E2C6E1"
,
/* 226 198 225 Purple */
"#F0E2EF"
/* 240 226 239 Light Purple */
/* From the HIG https://developer.gnome.org/hig/reference/palette.html , as of 2023-09-29 */
"#62a0ea"
,
/* Blue 2 */
"#1c71d8"
,
/* Blue 4 */
"#57e389"
,
/* Green 2 */
"#2ec27e"
,
/* Green 4 */
"#f8e45c"
,
/* Yellow 2 */
"#f5c211"
,
/* Yellow 4 */
"#ffbe6f"
,
/* Orange 1 */
"#ff7800"
,
/* Orange 3 */
"#ed333b"
,
/* Red 2 */
"#c01c28"
,
/* Red 4 */
"#c061cb"
,
/* Purple 2 */
"#813d9c"
/* Purple 4 */
};
return
colors
[
g_random_int_range
(
0
,
G_N_ELEMENTS
(
colors
))];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment