-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathtxt-font-color.feature
55 lines (45 loc) · 1.69 KB
/
txt-font-color.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Feature: Query and set font color
In order to color text to suit a presentation application
As a developer using python-pptx
I need to query and set the color of text
Scenario Outline: Get font color type
Given a font with <color type> color
Then the font's color type is <value>
Examples: Color type settings
| color type | value |
| no | None |
| an RGB | RGB |
| a theme | theme color |
Scenario: Get font RGB color
Given a font with an RGB color
Then its color value matches its RGB color
Scenario: Get font theme color
Given a font with a theme color
Then its color value matches its theme color
Scenario Outline: Get font color brightness
Given a font with a color brightness setting of <setting>
Then its color brightness value is <value>
Examples: Color brightness settings
| setting | value |
| 25% darker | -0.25 |
| 40% lighter | 0.4 |
| no brightness adjustment | 0 |
Scenario Outline: Set font color
Given a font with no color
When I set the font <color type> value
And I save and reload the presentation
Then the font's <color type> value matches the value I set
Examples: Color types
| color type |
| RGB |
| theme color |
Scenario Outline: Set font color brightness
Given a font with <color type> color
When I set the font color brightness to <value>
And I save and reload the presentation
Then the font's color brightness is <value>
Examples: Color types
| color type | value |
| an RGB | -0.25 |
| a theme | 0.4 |
| an RGB | 0 |