|
1 | 1 | <!-- |
2 | 2 | - @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net> |
3 | | - - @copyright Copyright (c) 2022 Greta Doci <gretadoci@gmail.com> |
4 | 3 | - |
5 | | - - @author Julius Härtl <jus@bitgrid.net> |
6 | | - - @author Greta Doci <gretadoci@gmail.com> |
7 | 4 | - @author Christopher Ng <chrng8@gmail.com> |
| 5 | + - @author Greta Doci <gretadoci@gmail.com> |
| 6 | + - @author John Molakvoæ <skjnldsv@protonmail.com> |
| 7 | + - @author Julius Härtl <jus@bitgrid.net> |
8 | 8 | - |
9 | 9 | - @license GNU AGPL version 3 or any later version |
10 | 10 | - |
|
24 | 24 | --> |
25 | 25 |
|
26 | 26 | <template> |
27 | | - <div class="background-selector"> |
| 27 | + <div class="background-selector" data-user-theming-background-settings> |
28 | 28 | <!-- Custom background --> |
29 | 29 | <button class="background background__filepicker" |
30 | 30 | :class="{ 'icon-loading': loading === 'custom', 'background--active': backgroundImage === 'custom' }" |
31 | 31 | :data-color-bright="invertTextColor(Theming.color)" |
| 32 | + data-user-theming-background-custom |
32 | 33 | tabindex="0" |
33 | 34 | @click="pickFile"> |
34 | 35 | {{ t('theming', 'Custom background') }} |
|
40 | 41 | :class="{ 'icon-loading': loading === 'default', 'background--active': backgroundImage === 'default' }" |
41 | 42 | :data-color-bright="invertTextColor(Theming.defaultColor)" |
42 | 43 | :style="{ '--border-color': Theming.defaultColor }" |
| 44 | + data-user-theming-background-default |
43 | 45 | tabindex="0" |
44 | 46 | @click="setDefault"> |
45 | 47 | {{ t('theming', 'Default background') }} |
|
52 | 54 | :data-color="Theming.color" |
53 | 55 | :data-color-bright="invertTextColor(Theming.color)" |
54 | 56 | :style="{ backgroundColor: Theming.color, '--border-color': Theming.color}" |
| 57 | + data-user-theming-background-color |
55 | 58 | tabindex="0"> |
56 | 59 | {{ t('theming', 'Change color') }} |
57 | 60 | </button> |
|
63 | 66 | v-tooltip="shippedBackground.details.attribution" |
64 | 67 | :class="{ 'icon-loading': loading === shippedBackground.name, 'background--active': backgroundImage === shippedBackground.name }" |
65 | 68 | :data-color-bright="shippedBackground.details.theming === 'dark'" |
| 69 | + :data-user-theming-background-shipped="shippedBackground.name" |
66 | 70 | :style="{ backgroundImage: 'url(' + shippedBackground.preview + ')', '--border-color': shippedBackground.details.primary_color }" |
67 | 71 | class="background background__shipped" |
68 | 72 | tabindex="0" |
|
72 | 76 |
|
73 | 77 | <!-- Remove background --> |
74 | 78 | <button class="background background__delete" |
| 79 | + data-user-theming-background-clear |
75 | 80 | tabindex="0" |
76 | 81 | @click="removeBackground"> |
77 | 82 | {{ t('theming', 'Remove background') }} |
|
0 commit comments