Compare commits
599 Commits
wip/lockdo
...
3.36.0
Author | SHA1 | Date | |
---|---|---|---|
4baa091bc5 | |||
cb7d1925ef | |||
3ddae9d815 | |||
e22421a25a | |||
09a1e61c63 | |||
7345a6f276 | |||
fda938175e | |||
3a39fb5ab8 | |||
1a0ec782b5 | |||
a96753f085 | |||
4ff94f80a0 | |||
e6d4581959 | |||
07bbcb1b48 | |||
f4ea9074d0 | |||
d4ee2e8bbf | |||
cf82d5ba85 | |||
5e04f6eb23 | |||
0dd171a7c8 | |||
837fbbf417 | |||
d7b61e7281 | |||
073da0806c | |||
ff54b0d35e | |||
ff2a736193 | |||
c6cf81f28b | |||
104d1ae151 | |||
12e14884ef | |||
3c4a5a67e2 | |||
e4f9efc134 | |||
bd665df321 | |||
bd197789c1 | |||
daff787a62 | |||
ff1343611f | |||
da05c85f3c | |||
648179a2db | |||
a5ad81d923 | |||
abfa61abc5 | |||
abdfaeb444 | |||
06b690ff21 | |||
d0226c7897 | |||
19e084036a | |||
a7d974e670 | |||
7a0c866d97 | |||
cc3f439323 | |||
51b7eb7a2b | |||
023859ee4b | |||
09acd0a3db | |||
bf213af362 | |||
bfb0bc7a29 | |||
c00f1d040b | |||
ba7cfff90c | |||
548c41d164 | |||
172d21cf50 | |||
5c8f3a65f7 | |||
07369125b6 | |||
59cae58f25 | |||
e07b9a75b5 | |||
19fc7c4d31 | |||
d66f5ab3c6 | |||
c773c8c162 | |||
9a3ed0056e | |||
b3999e4078 | |||
d0a587d42f | |||
2bb8e1be9b | |||
967a6ae44d | |||
89ca5e71d4 | |||
4c4d23ed83 | |||
7173ec1df7 | |||
bc465ab006 | |||
fe4973b585 | |||
0d0384ebb1 | |||
27ef8eb9a0 | |||
24a3fd4c4d | |||
d9f8e04478 | |||
b9f6032ddd | |||
d62391c8f1 | |||
ab24ee7a7e | |||
c52fd9373c | |||
1249655d0a | |||
120b907c33 | |||
3848513cf4 | |||
725c72e020 | |||
0b113094b4 | |||
3633e1feca | |||
4759197200 | |||
1d39afabdc | |||
483607311c | |||
d90a79fe7a | |||
87ed0118d1 | |||
1f5eccbc70 | |||
dac2274993 | |||
39db86e755 | |||
255627bd69 | |||
0afac36713 | |||
c0c027c608 | |||
e938986a74 | |||
32fa060a62 | |||
38da479ee8 | |||
574ab04e9f | |||
ee6635282c | |||
ff39b3274b | |||
2c1d654035 | |||
1bdb065ffa | |||
57669bca1b | |||
e647ceb4d1 | |||
4d9e84f6f7 | |||
5171bdd45f | |||
9ab0071aa5 | |||
cf39b2db87 | |||
8a1c0f3a42 | |||
4b42879a2c | |||
394121f77d | |||
f4f8982825 | |||
7220f6d25b | |||
059fb5c7cb | |||
0057c19bfc | |||
05409b949f | |||
affbec73ef | |||
e781e1fdba | |||
12de4e67f8 | |||
9201701c95 | |||
6e7344b837 | |||
b8f8e1710b | |||
8b0a67fe64 | |||
1eb1b1be4e | |||
de5a4a98c9 | |||
26a49168ba | |||
ff4623454f | |||
cf5204760d | |||
46c13349fc | |||
2a3875775d | |||
38b38732d3 | |||
24c8f5bb70 | |||
c02296a9b9 | |||
4eb122ea8d | |||
90d5d16343 | |||
45c8f0b76c | |||
236ee9e483 | |||
459b200cc0 | |||
45bc8ae292 | |||
fbfe5a1988 | |||
87a6dc1b95 | |||
1b11f0673e | |||
3a4dd55c11 | |||
1219a304fb | |||
9d941f8202 | |||
0c232876c3 | |||
dcbc7236a0 | |||
80a869e768 | |||
b7d874d36b | |||
9f9f4a4cf6 | |||
217a2f3216 | |||
84e94db275 | |||
5f2a6003e1 | |||
2876a8afe1 | |||
6f12864776 | |||
5934dc16d3 | |||
bcc652632d | |||
95ebbb9360 | |||
775c3345eb | |||
c8734b8f35 | |||
9f2dbfd463 | |||
d6c0a53db9 | |||
9c7098816e | |||
8834088f3b | |||
0d766dcf70 | |||
41da4b0681 | |||
5cad5c20e9 | |||
133b623204 | |||
d44a4a6a62 | |||
06565542e7 | |||
ead73e5195 | |||
c395a1d1cd | |||
4f1174ccbb | |||
b78f09de78 | |||
9eff9adaae | |||
41b4c51341 | |||
9bada1f2fb | |||
7e27a2db3d | |||
523eec521c | |||
77890c6000 | |||
40a50f77ea | |||
ccc64e2621 | |||
b58eaeb3e7 | |||
e206e3ba59 | |||
71ec81cff7 | |||
37adbf610d | |||
6ed3d3d05d | |||
c023eba22c | |||
c7fb61984b | |||
65b1e04f13 | |||
90786509bb | |||
ebaf969a05 | |||
d2a62bcc7f | |||
66a8f2860d | |||
d96131793a | |||
6c6c89c634 | |||
e57768e2e8 | |||
d43401cc74 | |||
9e5071849c | |||
55bfc4d820 | |||
6577a295da | |||
a0db95e00f | |||
1562d6c63a | |||
8d3277cb37 | |||
c65d820390 | |||
9f5f6aa9b2 | |||
261d6d35f5 | |||
0f34cbb658 | |||
077a1d2309 | |||
ea6b34de0f | |||
66835c6e15 | |||
99e81b32f4 | |||
fe69dacaf1 | |||
6daeb048af | |||
db4dfd8fa5 | |||
0b150a17c5 | |||
43a45c091d | |||
f4e35a9e82 | |||
cc5adcbeef | |||
848cc1bb19 | |||
654093dc40 | |||
aebea82474 | |||
a6b29d6501 | |||
9766562062 | |||
c6a79fafc9 | |||
7fc4fe9a97 | |||
ee0a36e6a3 | |||
a5972d2882 | |||
2fdc627257 | |||
77f77b4305 | |||
910a1aed96 | |||
bf0bd21757 | |||
e1be4ba434 | |||
7c8ed95330 | |||
f351cfa2f7 | |||
d26bb38be9 | |||
b75e61d5c8 | |||
ca35ae4364 | |||
f6fa08fa75 | |||
46f94241eb | |||
ea2ddaa9dd | |||
b4d491a4d2 | |||
463dcc6b93 | |||
f755905c75 | |||
b70fb5b69a | |||
8b64d88091 | |||
b66c8b1411 | |||
d6a746dceb | |||
224ab2e543 | |||
dee738e24f | |||
84c7890917 | |||
fd484099ae | |||
727c84251d | |||
37e55df298 | |||
2644f62318 | |||
893bde0ca1 | |||
bd0bf3d3d0 | |||
05c918dc1a | |||
3651cb2047 | |||
b9c7631a55 | |||
b59c9c6946 | |||
f02313c1c6 | |||
6493789bc9 | |||
4081b97462 | |||
c20451c2e7 | |||
16dcb1ac15 | |||
c1ee656c35 | |||
cd09144069 | |||
7851069d9c | |||
e42700a308 | |||
febc0690c1 | |||
308b4f81b5 | |||
66a3ad42da | |||
1b84a3ecb2 | |||
78fd9d9e4f | |||
baa5bfcf49 | |||
5d88729fc1 | |||
15b59414d6 | |||
2b39d6e95a | |||
73eaf0df9f | |||
54e2d3ceb7 | |||
d3cfb5801b | |||
143cda628e | |||
e90940ae10 | |||
34207cc457 | |||
cedcda0ccc | |||
cfcf1d5192 | |||
8d9bc4bc4c | |||
d456e938d2 | |||
f15208e26d | |||
1999a359fa | |||
3c180bc8f7 | |||
8de42d1f63 | |||
1769a96362 | |||
37a3d0d09a | |||
e16def0c43 | |||
83d083f189 | |||
b1ea4f6c35 | |||
60c540e93a | |||
f3b56e0eb1 | |||
c8d02be14a | |||
42b50051ac | |||
bda18888c0 | |||
c150fe95b9 | |||
8b4b9d396b | |||
9c0f069f86 | |||
8929c89d1f | |||
881eab7669 | |||
141652b7ec | |||
b5651e38c7 | |||
33ae220ad2 | |||
6ec996e45b | |||
4f3e847897 | |||
07a1f107cc | |||
e062f27edc | |||
36c417e6d9 | |||
87ca1e034f | |||
dbf1ffc9d4 | |||
c5bed7e963 | |||
fa915ff7ea | |||
cbced1ce28 | |||
900d36d0ea | |||
62441ebeb4 | |||
051f081db7 | |||
ddbc4ef42e | |||
fc4dfa11c3 | |||
60f12da3cd | |||
40f7d61524 | |||
1263f84c3f | |||
9d91b586d8 | |||
ab8bce35f1 | |||
7287ee3651 | |||
9d7a319721 | |||
b7df1133b8 | |||
dfb8737007 | |||
a06a418ac1 | |||
35063c9e7c | |||
ded4586781 | |||
89790ac723 | |||
d253b0671b | |||
e58dcd3040 | |||
050a1898ab | |||
79a8fa2ede | |||
7819f8f82e | |||
5c570460cf | |||
07882c4b6a | |||
f26eb304f5 | |||
7b33e240ed | |||
a205f4e249 | |||
e16c64dbdd | |||
404ae0a897 | |||
9e00e8a0fb | |||
529829a561 | |||
ed84541050 | |||
075f4a5efc | |||
f1bd94a367 | |||
db69ad876a | |||
c6f297e4e5 | |||
1067642300 | |||
059524b007 | |||
1d72f28a1c | |||
5b92e3a9a8 | |||
8795668c41 | |||
872c84a1c3 | |||
b47879d0a7 | |||
679fc20765 | |||
db85e7084c | |||
1afd2c6ad2 | |||
a74a9f6443 | |||
f49e20bbae | |||
9916989272 | |||
1054f7533a | |||
5f457f6ed2 | |||
9df2edc87e | |||
28eb94402e | |||
d2bf869c16 | |||
05ea1bdac2 | |||
454e85f0a9 | |||
45c5f21f6c | |||
59bd2dd1e3 | |||
3c47923953 | |||
dbaf5687dd | |||
20895c7791 | |||
ddeb2fa05d | |||
7a1f4f9af3 | |||
dc578a9e79 | |||
040c1638ea | |||
ded8412a2a | |||
2f3738fae0 | |||
a59da75830 | |||
2b184a10d6 | |||
fc36837606 | |||
4871845d01 | |||
53ac00eabb | |||
75905ebd3c | |||
12f033ee0f | |||
964106513e | |||
9aca26916c | |||
5a006d9e79 | |||
bd016c6b49 | |||
484dd98448 | |||
84d92bf65e | |||
8d88a9b9c4 | |||
b86ef8cde5 | |||
bd48b0641f | |||
0f4aeb2654 | |||
0b3fec22d7 | |||
9009b50bd1 | |||
eee0657727 | |||
056f5e5100 | |||
5b2c604fe4 | |||
db9ef11f28 | |||
ea5732fe6f | |||
b7e828fa3c | |||
cbc9bc5fc6 | |||
9c785ca6b6 | |||
375d1892bf | |||
2dae3f5656 | |||
0a5d07871d | |||
2490a2ffda | |||
3eaa19ab0f | |||
4c4846e9bd | |||
747ba97dbd | |||
74393c700e | |||
3f21c21532 | |||
526c601512 | |||
6d2c834694 | |||
0b51a52c9b | |||
7224afd32a | |||
d5dbc28f77 | |||
2996d9d977 | |||
eec25367fc | |||
7388e4006a | |||
6c1cd1d8be | |||
5e08c80857 | |||
26b78e7d77 | |||
b674cdbde2 | |||
68598f7c0c | |||
ee7e62c9c8 | |||
a750d04bdb | |||
ef035c1b60 | |||
854bd93385 | |||
9c589297d5 | |||
aae59801f1 | |||
c95926aaed | |||
c61685e617 | |||
a0d49bad36 | |||
2b89efab4e | |||
eb8b82b62a | |||
d9b3d6745c | |||
c2956e8bd2 | |||
397454d844 | |||
7638485f9e | |||
49170585b3 | |||
88ac339774 | |||
ed647f5937 | |||
b49023c31c | |||
9e9f3ff6b4 | |||
b4cf07d05f | |||
aba3336b51 | |||
2cabef97b6 | |||
4e26e0e53c | |||
6eacbeb203 | |||
84f490cceb | |||
786aa8302d | |||
b4ed8a3d06 | |||
9f0ef0044d | |||
5f3f4c3301 | |||
1ef7306149 | |||
e15d8eeb17 | |||
1f7c99d9fb | |||
f7620b385a | |||
9746c00a22 | |||
dc6f36bf5e | |||
973c920284 | |||
1dad5f3ffa | |||
802c8d5844 | |||
7781f973f2 | |||
53c12dc33e | |||
f46d10c4f9 | |||
e573d739af | |||
6c0c5f8ed4 | |||
4333820f8e | |||
ad2d95d523 | |||
479c14c766 | |||
56805a4c85 | |||
1fb955b8da | |||
0e3a2654d4 | |||
ef4009f17d | |||
31a2758606 | |||
f7153ed340 | |||
02e885b3a4 | |||
012dde3de9 | |||
b3db8fc73f | |||
aae3789142 | |||
184f980c18 | |||
11283339b6 | |||
765895fb19 | |||
a68762980f | |||
c565186ea8 | |||
efd6be60e3 | |||
84250bbf88 | |||
79ccf1a0b5 | |||
b3770fd923 | |||
f0e04e7892 | |||
889863f353 | |||
9726aba257 | |||
c4646c15e9 | |||
5195f6f92e | |||
7ed39f7905 | |||
ebf6e75b5e | |||
b0ca52ffdc | |||
fbfa22f964 | |||
260cce9d92 | |||
dcf7ba3bc7 | |||
2ae8606e5e | |||
9719b13cf8 | |||
d27638e37e | |||
e4cb1a8f4b | |||
2fc84e0fe3 | |||
845c52797b | |||
48f1c4b9d7 | |||
5d99bdbe5e | |||
929c2c3921 | |||
914c6e48b1 | |||
259c44395f | |||
5de713b262 | |||
882f6d9a72 | |||
aac01f1c9e | |||
8b15519160 | |||
69a5e89096 | |||
e784afe9ac | |||
8b8d3e28b2 | |||
9b673dc98b | |||
c0fcf2d3a8 | |||
3b46c3910c | |||
76961927d5 | |||
8064f4498e | |||
b21c8c1290 | |||
4c6a0678ff | |||
a8dcfa4656 | |||
3e6bcbb486 | |||
a11f417cd0 | |||
a0c0e52229 | |||
1f2116eaf8 | |||
ceda02f2da | |||
0df3b47366 | |||
e169e5a30a | |||
0d9dcd4e0a | |||
6233d87e5b | |||
57751a2bef | |||
f93e4d7424 | |||
3582133e29 | |||
39b206d862 | |||
29a561c0b1 | |||
276f912c45 | |||
46878d69f3 | |||
7c0b6c8413 | |||
5e1def2642 | |||
e30144a0dc | |||
e9d484f77f | |||
f2e9757862 | |||
d713d78745 | |||
fb3e5a4495 | |||
79a837b87a | |||
d50e06dcce | |||
891f2201c5 | |||
9ea745bcd4 | |||
eb2ebd2bf9 | |||
1ef4d85b50 | |||
fc7bcf4761 | |||
08ebfa1acf | |||
944b835fa9 | |||
9c1940ef9d | |||
f55ff01239 | |||
8f4414de97 | |||
24e631ffe2 | |||
248eb7419e | |||
49f32d2a43 | |||
b0753f78cc | |||
dfb9270a2c | |||
dd2e560255 | |||
d0507ec69f | |||
27b927448b | |||
2d4941f432 | |||
45fe925a1b | |||
9dc85d76d9 | |||
10818c74a6 | |||
460cf9df30 | |||
42af514c51 | |||
3244c280d8 | |||
e07a5749b7 | |||
a8f44be5c1 | |||
8f8892aa20 | |||
45a8b92d84 | |||
6b4017fbb6 | |||
28d42628d1 | |||
c1d738d60c | |||
c2609227ff |
2
.gitignore
vendored
@ -21,6 +21,8 @@ data/org.gnome.shell.gschema.valid
|
|||||||
data/org.gnome.Shell.PortalHelper.desktop
|
data/org.gnome.Shell.PortalHelper.desktop
|
||||||
data/org.gnome.Shell.PortalHelper.service
|
data/org.gnome.Shell.PortalHelper.service
|
||||||
data/theme/.sass-cache
|
data/theme/.sass-cache
|
||||||
|
data/theme/gnome-shell*.css.map
|
||||||
|
data/theme/gnome-shell*.css
|
||||||
docs/reference/*/*.args
|
docs/reference/*/*.args
|
||||||
docs/reference/*/*.bak
|
docs/reference/*/*.bak
|
||||||
docs/reference/*/*.hierarchy
|
docs/reference/*/*.hierarchy
|
||||||
|
@ -46,6 +46,20 @@ eslint:
|
|||||||
- reports
|
- reports
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
|
potfile_check:
|
||||||
|
image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v1
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- ./.gitlab-ci/check-potfiles.sh
|
||||||
|
<<: *only_default
|
||||||
|
|
||||||
|
no_template_check:
|
||||||
|
image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v1
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- ./.gitlab-ci/check-template-strings.sh
|
||||||
|
<<: *only_default
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: registry.gitlab.gnome.org/gnome/mutter/master:v3
|
image: registry.gitlab.gnome.org/gnome/mutter/master:v3
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -19,7 +19,7 @@ fi
|
|||||||
function commit_message_has_url() {
|
function commit_message_has_url() {
|
||||||
commit=$1
|
commit=$1
|
||||||
commit_message=$(git show -s --format='format:%b' $commit)
|
commit_message=$(git show -s --format='format:%b' $commit)
|
||||||
echo "$commit_message" | grep -qe "\($CI_MERGE_REQUEST_PROJECT_URL/\(issues\|merge_requests\)/[0-9]\+\|https://bugzilla.gnome.org/show_bug.cgi?id=[0-9]\+\)"
|
echo "$commit_message" | grep -qe "\($CI_MERGE_REQUEST_PROJECT_URL/\(-/\)\?\(issues\|merge_requests\)/[0-9]\+\|https://bugzilla.gnome.org/show_bug.cgi?id=[0-9]\+\)"
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
26
.gitlab-ci/check-potfiles.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
srcdirs="js src subprojects/extensions-tool"
|
||||||
|
globs=('*.js' '*.c')
|
||||||
|
|
||||||
|
# find source files that contain gettext keywords
|
||||||
|
files=$(grep -lR ${globs[@]/#/--include=} '\(gettext\|[^I_)]_\)(' $srcdirs)
|
||||||
|
|
||||||
|
# find those that aren't listed in POTFILES.in
|
||||||
|
missing=$(for f in $files; do ! grep -q ^$f po/POTFILES.in && echo $f; done)
|
||||||
|
|
||||||
|
if [ ${#missing} -eq 0 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >&2 <<EOT
|
||||||
|
|
||||||
|
The following files are missing from po/POTFILES.po:
|
||||||
|
|
||||||
|
EOT
|
||||||
|
for f in $missing; do
|
||||||
|
echo " $f" >&2
|
||||||
|
done
|
||||||
|
echo >&2
|
||||||
|
|
||||||
|
exit 1
|
23
.gitlab-ci/check-template-strings.sh
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# find files from POTFILES.in that use js template strings
|
||||||
|
baddies=$(grep -l '${' $(grep ^js po/POTFILES.in))
|
||||||
|
|
||||||
|
if [ ${#baddies} -eq 0 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >&2 <<EOT
|
||||||
|
|
||||||
|
xgettext cannot handle template strings properly, so we ban their use
|
||||||
|
in files with translatable strings.
|
||||||
|
|
||||||
|
The following files are listed in po/POTFILES.in and use template strings:
|
||||||
|
|
||||||
|
EOT
|
||||||
|
for f in $baddies; do
|
||||||
|
echo " $f" >&2
|
||||||
|
done
|
||||||
|
echo >&2
|
||||||
|
|
||||||
|
exit 1
|
55
.gitlab/issue_templates/Bug.md
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
<!--
|
||||||
|
Please read https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines
|
||||||
|
first to ensure that you create a clear and specific issue.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Affected version
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Provide at least the following information:
|
||||||
|
* Your OS and version
|
||||||
|
* Affected GNOME Shell version
|
||||||
|
* Does this issue appear in XOrg and/or Wayland
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Bug summary
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Provide a short summary of the bug you encountered.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Steps to reproduce
|
||||||
|
|
||||||
|
<!--
|
||||||
|
1. Step one
|
||||||
|
2. Step two
|
||||||
|
3. ...
|
||||||
|
-->
|
||||||
|
|
||||||
|
### What happened
|
||||||
|
|
||||||
|
<!--
|
||||||
|
What did GNOME Shell do that was unexpected?
|
||||||
|
-->
|
||||||
|
|
||||||
|
### What did you expect to happen
|
||||||
|
|
||||||
|
<!--
|
||||||
|
What did you expect GNOME Shell to do?
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Relevant logs, screenshots, screencasts etc.
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you have further information, such as technical documentation, logs,
|
||||||
|
screenshots or screencasts related, please provide them here.
|
||||||
|
|
||||||
|
If the bug is a crash, please obtain a stack trace with installed debug
|
||||||
|
symbols (at least for GNOME Shell and Mutter) and attach it to
|
||||||
|
this issue following the instructions on
|
||||||
|
https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Do not remove the following line. -->
|
||||||
|
/label ~"1. Bug"
|
30
.gitlab/issue_templates/Feature.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<!--
|
||||||
|
Please read https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines
|
||||||
|
first to ensure that you create a clear and specific issue.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Feature summary
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Describe what you would like to be able to do with GNOME Shell
|
||||||
|
that you currently cannot do.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### How would you like it to work
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you can think of a way GNOME Shell might be able to do this,
|
||||||
|
let us know here.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Relevant links, screenshots, screencasts etc.
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you have further information, such as technical documentation,
|
||||||
|
code, mockups or a similar feature in another desktop environments,
|
||||||
|
please provide them here.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Do not remove the following line. -->
|
||||||
|
/label ~"1. Feature"
|
@ -29,9 +29,8 @@ what to do.
|
|||||||
bar = do_thing(b);
|
bar = do_thing(b);
|
||||||
|
|
||||||
if (var == 5) {
|
if (var == 5) {
|
||||||
for (let i = 0; i < 10; i++) {
|
for (let i = 0; i < 10; i++)
|
||||||
print(i);
|
print(i);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
print(20);
|
print(20);
|
||||||
}
|
}
|
||||||
@ -102,9 +101,8 @@ under the imports:
|
|||||||
Always use either `const` or `let` when defining a variable.
|
Always use either `const` or `let` when defining a variable.
|
||||||
```javascript
|
```javascript
|
||||||
// Iterating over an array
|
// Iterating over an array
|
||||||
for (let i = 0; i < arr.length; ++i) {
|
for (let i = 0; i < arr.length; ++i)
|
||||||
let item = arr[i];
|
let item = arr[i];
|
||||||
}
|
|
||||||
|
|
||||||
// Iterating over an object's properties
|
// Iterating over an object's properties
|
||||||
for (let prop in someobj) {
|
for (let prop in someobj) {
|
||||||
@ -252,7 +250,7 @@ variable that can be captured in closures.
|
|||||||
All closures should be wrapped with Function.prototype.bind or use arrow
|
All closures should be wrapped with Function.prototype.bind or use arrow
|
||||||
notation.
|
notation.
|
||||||
```javascript
|
```javascript
|
||||||
let closure1 = () => { this._fnorbate(); };
|
let closure1 = () => this._fnorbate();
|
||||||
let closure2 = this._fnorbate.bind(this);
|
let closure2 = this._fnorbate.bind(this);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
154
NEWS
@ -1,3 +1,157 @@
|
|||||||
|
3.36.0
|
||||||
|
======
|
||||||
|
* Fix off-by-1900 error in date conversions [Florian; !1061]
|
||||||
|
* Fix crash on startup with topIcons* extension enabled [Florian; #2308]
|
||||||
|
* Don't require gsd-xsettings for X11 support on wayland [Olivier; !1065]
|
||||||
|
* Fix ibus support in Xorg session [Carlos; #1690]
|
||||||
|
* Improve Extensions D-Bus API [Florian; !1074]
|
||||||
|
* Allow session modes to specify alternative resource name [Marco; !1063]
|
||||||
|
* Fix link to location settings in aggregate menu [Sebastian; #2316]
|
||||||
|
* Fix illegible app folder titles with light theme [ub; !1059]
|
||||||
|
* Really fix visual glitch in sliders [Jonas; #1569]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Marco Trevisan (Treviño), Jonas Dreßler, Olivier Fourdan, Carlos Garnacho,
|
||||||
|
Sebastian Keller, Florian Müllner, ub
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Aman Alam [pa], Goran Vidović [hr], Aurimas Černius [lt],
|
||||||
|
Milo Casagrande [it], Daniel Korostil [uk], sicklylife [ja],
|
||||||
|
Marek Černocký [cs], Nathan Follens [nl]
|
||||||
|
|
||||||
|
3.35.92
|
||||||
|
=======
|
||||||
|
* Plug a memory leak [Jonas D.; !1015]
|
||||||
|
* Fix missing "back" button on login screen [Florian; #2228]
|
||||||
|
* Fix width of window preview titles in overview [Jonas D.; #58]
|
||||||
|
* Fix looking glass text with light style variant [Feichtmeier; !1023]
|
||||||
|
* Center unlock entry [Florian; !1021]
|
||||||
|
* Hide overlay scrollbars in notification popup [Jonas D.; !1013]
|
||||||
|
* Work around add_actor() slowness in icon spring animation [Daniel; !1002]
|
||||||
|
* Add disable-animations heuristics [Jonas Å.; !757]
|
||||||
|
* Fix visual glitches in on-screen keyboard [Carlos; #2214]
|
||||||
|
* Fix clearing changed textures from cache [Florian; #2244]
|
||||||
|
* Fix visual glitch in sliders [Daniel; #1569]
|
||||||
|
* Stop using dedicated lock screen background [Florian; !1001]
|
||||||
|
* Fix entries disappearing after authentication errors [Florian; #2236]
|
||||||
|
* Fix crash when animations are disabled [Florian; #2255]
|
||||||
|
* Fix passing pointer events to clients when magnified [Jonas D.; !993]
|
||||||
|
* Fix keynav on new lock screen [Florian; #2210]
|
||||||
|
* Avoid short-lived allocations on actor removal [Christian; #2263]
|
||||||
|
* Fix super-sized default avatars in user list [Florian, Sam; #2242]
|
||||||
|
* Leave overview when locking the screen [Jonas D.; !1043]
|
||||||
|
* Hide message list on login screen [Florian; #2241]
|
||||||
|
* Avoid IO on the main thread [Christian, Florian; !1050, !1051]
|
||||||
|
* Fix window animations getting stuck when client doesn't respond [Jonas; !1055]
|
||||||
|
* Only subscribe to touchpad events for touchpad gestures [Daniel; !925]
|
||||||
|
* Start X11 session services before Xwayland clients [Carlos; !836, !1056]
|
||||||
|
* Only show switch-user button with unlock prompt [Florian; !1029]
|
||||||
|
* Misc. bug fixes and cleanups [Jonas D., Florian, Georges, Jonas Å., Daniel,
|
||||||
|
Jakub, Philippe; !1018, !1020, !1024, !1027, !1026, !1022, !1031, !1035,
|
||||||
|
!1032, !1025, !1039, #2157, !1037, !1042, !1047, !1048, #2270, !1046,
|
||||||
|
!167, !1016]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Jonas Dreßler, Feichtmeier, Carlos Garnacho, Christian Hergert, Sam Hewitt,
|
||||||
|
Florian Müllner, Georges Basile Stavracas Neto, Jakub Steiner, Philippe Troin,
|
||||||
|
Daniel van Vugt, Jonas Ådahl
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Danial Behzadi [fa], Efstathios Iosifidis [el], Daniel Mustieles [es],
|
||||||
|
Sabri Ünal [tr], sicklylife [ja], Piotr Drąg [pl], Jordi Mas [ca],
|
||||||
|
Anders Jonsson [sv], Chao-Hsiung Liao [zh_TW], Asier Sarasua Garmendia [eu],
|
||||||
|
Rafael Fontenelle [pt_BR], Марко Костић [sr], Changwoo Ryu [ko],
|
||||||
|
Charles Monzat [fr], Jiri Grönroos [fi], Jor Teron [mjw], Bruce Cowan [en_GB],
|
||||||
|
Emin Tufan Çetin [tr], Alan Mortensen [da], Balázs Úr [hu], Fran Dieguez [gl],
|
||||||
|
Kukuh Syafaat [id]
|
||||||
|
|
||||||
|
3.35.91
|
||||||
|
=======
|
||||||
|
* Improve magnifier [Carlos; !984]
|
||||||
|
* Only enable OSK automatically if touch-mode is enabled [Carlos; #872]
|
||||||
|
* Merge screen shield and unlock dialog to new lock screen [Georges; !872]
|
||||||
|
* Improve ShellBlur effect [Jonas; !991]
|
||||||
|
* Adapt user avatar for new lock screen [Umang, Georges; !922]
|
||||||
|
* Animate prompt transition on lock screen [Florian; !972]
|
||||||
|
* Reduce font-size in dialog titles if text doesn't fit [Jonas; !1012]
|
||||||
|
* Various lock screen improvements and bug fixes [Jakub, Florian, Georges;
|
||||||
|
!996, !997, !999, #2212, !998, !1006, #2215, #2213]
|
||||||
|
* Misc. bug fixes and cleanups [Daniel, Florian, Jakub, nana-4, Jonas; #2170,
|
||||||
|
#2167, !936, !988, #2187, !994, !995, !938, #2194, #2203, !1004, !977, !1014]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Jonas Dreßler, Carlos Garnacho, Umang Jain, Daniel Mustieles, Florian Müllner,
|
||||||
|
Georges Basile Stavracas Neto, Jakub Steiner, Daniel van Vugt, nana-4
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Daniel Mustieles [es, pt_BR], Rafael Fontenelle [pt_BR], Danial Behzadi [fa],
|
||||||
|
Anders Jonsson [sv], Asier Sarasua Garmendia [eu], Aurimas Černius [lt],
|
||||||
|
Bruce Cowan [en_GB], sicklylife [ja], Fran Dieguez [gl], Kukuh Syafaat [id],
|
||||||
|
Emin Tufan Çetin [tr], Jiri Grönroos [fi], Jordi Mas [ca], Claude Paroz [fr],
|
||||||
|
Ask Hjorth Larsen [da], Марко Костић [sr], Piotr Drąg [pl],
|
||||||
|
Charles Monzat [fr], Balázs Úr [hu]
|
||||||
|
|
||||||
|
3.35.90
|
||||||
|
=======
|
||||||
|
* Update default favorite apps [Michael; !907]
|
||||||
|
* Add Shell.Blur effect [Georges; !864, !924]
|
||||||
|
* Overhaul scroll/swipe gestures [Alexander; !821, !825, !826]
|
||||||
|
* Fix VPN connections when delaying request [Florian; #2008]
|
||||||
|
* Overhaul theme [Sam, Jakub, nana-4; !904, !931, !957]
|
||||||
|
* Improve visual appearance of Weather integration [Florian; #1143]
|
||||||
|
* Implement new system dialog designs [Jonas; #1343]
|
||||||
|
* Animate position changes of app icons [Georges; !882]
|
||||||
|
* Add St.Viewport [Georges; !929]
|
||||||
|
* Make app folders behave as dialogs [Georges; !896]
|
||||||
|
* Add do-not-disturb functionality to calendar popup [Florian; #239]
|
||||||
|
* Show hint actor in focused entries [Jonas; !944]
|
||||||
|
* Switch screen-recorder back to VP8 [Björn; #256]
|
||||||
|
* Allow to run perf-tool as wayland compositor [Olivier; !941]
|
||||||
|
* Handle extension updates [Florian; !945]
|
||||||
|
* Animate showing and hiding caps-lock warning [Jonas; !952]
|
||||||
|
* Support "auto" lengths in CSS [Florian; !971]
|
||||||
|
* Turn extension-prefs into the offical Extensions app [Florian; #1968]
|
||||||
|
* Sandbox the portal helper [Michael; !983]
|
||||||
|
* Misc. bug fixes and cleanups [Florian, Björn, Jakub, Alexander, Daniel V.,
|
||||||
|
Jonas, nana-4, Carlos, Sebastian, Daniel G., Georges, Piotr; !918, !917,
|
||||||
|
!919, !920, #763, #791659, !927, #2091, !930, !926, !888, !934, !168, #2133,
|
||||||
|
#682, #2142, #2131, !943, #2132, #1958, #2146, !951, #1779, #2130, !964,
|
||||||
|
!965, !948, #2151, #1746, !967, !760, !968, !970, !973, #2169, #2176, !978,
|
||||||
|
!980, !979, #2177, !981, #2180, !974]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Michael Catanzaro, Björn Daase, Jonas Dreßler, Piotr Drąg, Olivier Fourdan,
|
||||||
|
Carlos Garnacho, Sam Hewitt, Sebastian Keller, Andre Klapper,
|
||||||
|
Alexander Mikhaylenko, Daniel García Moreno, Florian Müllner,
|
||||||
|
Georges Basile Stavracas Neto, Jakub Steiner, Daniel van Vugt, nana-4
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Asier Sarasua Garmendia [eu], Daniel Mustieles [es], Andrej Shadura [sk],
|
||||||
|
Carmen Bianca BAKKER [eo], Sucipto [id], Dušan Kazik [sk], Goran Vidović [hr],
|
||||||
|
sicklylife [ja], Kukuh Syafaat [id], Yi-Jyun Pan [zh_TW],
|
||||||
|
Rafael Fontenelle [pt_BR], Jordi Mas [ca], Jiri Grönroos [fi],
|
||||||
|
Fabio Tomat [fur], Umarzuki Bin Mochlis Moktar [ms], Daniel Korostil [uk],
|
||||||
|
Jor Teron [mjw], Anders Jonsson [sv], Aurimas Černius [lt]
|
||||||
|
|
||||||
|
3.35.3
|
||||||
|
======
|
||||||
|
* Add discrete GPU support for NVidia drivers [Bastien; #1810]
|
||||||
|
* Fix DND of window previews with tablet devices [Carlos; !897]
|
||||||
|
* Update pad OSD actions dynamically on mode changes [Carlos; !898]
|
||||||
|
* st: Add dedicated PasswordEntry widget [Umang; !619]
|
||||||
|
* Allow stand-alone builds of gnome-extensions tool [Florian; !877]
|
||||||
|
* extension-tool: Don't treat missing .js handler as error [Chuck; !905]
|
||||||
|
* Disallow top bar menus without top bar [Florian; #2002]
|
||||||
|
* Misc. bug fixes and cleanups [Georges, Florian, Robert, Umang; !901,
|
||||||
|
#789937, !909, !910, !911, !913, !916]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Michael Catanzaro, Chuck, Carlos Garnacho, Umang Jain, Robert Mader,
|
||||||
|
Florian Müllner, Georges Basile Stavracas Neto, Bastien Nocera
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Fabio Tomat [fur], Fran Dieguez [gl], Jordi Mas [ca], Daniel Mustieles [es]
|
||||||
|
|
||||||
3.35.2
|
3.35.2
|
||||||
======
|
======
|
||||||
* Fix unredirection after cancelled animations [Florian; #1788]
|
* Fix unredirection after cancelled animations [Florian; #1788]
|
||||||
|
@ -199,14 +199,37 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
LaunchExtensionPrefs:
|
LaunchExtensionPrefs:
|
||||||
@uuid: The UUID of the extension
|
Deprecated for OpenExtensionPrefs
|
||||||
|
|
||||||
Launch preferences of an extension.
|
|
||||||
-->
|
-->
|
||||||
<method name="LaunchExtensionPrefs">
|
<method name="LaunchExtensionPrefs">
|
||||||
<arg type="s" direction="in" name="uuid"/>
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
OpenExtensionPrefs:
|
||||||
|
@uuid: The UUID of the extension
|
||||||
|
@parent_window: Identifier for the application window
|
||||||
|
@options: Vardict with further options
|
||||||
|
|
||||||
|
Opens the prefs dialog of extension @uuid.
|
||||||
|
|
||||||
|
The following @options are recognized:
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>modal b</term>
|
||||||
|
<listitem>
|
||||||
|
<para>Whether the prefs window should be modal, default: false</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
-->
|
||||||
|
<method name="OpenExtensionPrefs">
|
||||||
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
|
<arg type="s" direction="in" name="parent_window"/>
|
||||||
|
<arg type="a{sv}" direction="in" name="options"/>
|
||||||
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
CheckForUpdates:
|
CheckForUpdates:
|
||||||
Update all extensions for which updates are available
|
Update all extensions for which updates are available
|
||||||
@ -234,5 +257,11 @@
|
|||||||
-->
|
-->
|
||||||
<property name="ShellVersion" type="s" access="read"/>
|
<property name="ShellVersion" type="s" access="read"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
UserExtensionsEnabled:
|
||||||
|
Whether user extensions are enabled
|
||||||
|
-->
|
||||||
|
<property name="UserExtensionsEnabled" type="b" access="readwrite"/>
|
||||||
|
|
||||||
</interface>
|
</interface>
|
||||||
</node>
|
</node>
|
||||||
|
@ -57,5 +57,19 @@
|
|||||||
<method name="GetWindows">
|
<method name="GetWindows">
|
||||||
<arg name="windows" direction="out" type="a{ta{sv}}" />
|
<arg name="windows" direction="out" type="a{ta{sv}}" />
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
AnimationsEnabled:
|
||||||
|
@short_description: Whether the shell animations are enabled
|
||||||
|
|
||||||
|
By default determined by the org.gnome.desktop.interface enable-animations
|
||||||
|
gsetting, but may be overridden, e.g. if there is an active screen cast or
|
||||||
|
remote desktop session that asked for animations to be disabled.
|
||||||
|
|
||||||
|
Since: 2
|
||||||
|
-->
|
||||||
|
<property name="AnimationsEnabled" type="b" access="read"/>
|
||||||
|
|
||||||
|
<property name="version" type="u" access="read"/>
|
||||||
</interface>
|
</interface>
|
||||||
</node>
|
</node>
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Name=Shell Extensions
|
|
||||||
Comment=Configure GNOME Shell Extensions
|
|
||||||
Exec=@bindir@/gnome-shell-extension-prefs %u
|
|
||||||
X-GNOME-Bugzilla-Bugzilla=GNOME
|
|
||||||
X-GNOME-Bugzilla-Product=gnome-shell
|
|
||||||
X-GNOME-Bugzilla-Component=extensions
|
|
||||||
X-GNOME-Bugzilla-Version=@VERSION@
|
|
||||||
Categories=GNOME;GTK;
|
|
||||||
OnlyShowIn=GNOME;
|
|
||||||
NoDisplay=true
|
|
@ -9,16 +9,9 @@
|
|||||||
<file>dash-placeholder.svg</file>
|
<file>dash-placeholder.svg</file>
|
||||||
<file>gnome-shell.css</file>
|
<file>gnome-shell.css</file>
|
||||||
<file>gnome-shell-high-contrast.css</file>
|
<file>gnome-shell-high-contrast.css</file>
|
||||||
<file>key-enter.svg</file>
|
|
||||||
<file>key-hide.svg</file>
|
|
||||||
<file>key-layout.svg</file>
|
|
||||||
<file>key-shift.svg</file>
|
|
||||||
<file>key-shift-uppercase.svg</file>
|
|
||||||
<file>key-shift-latched-uppercase.svg</file>
|
|
||||||
<file alias="icons/message-indicator-symbolic.svg">message-indicator-symbolic.svg</file>
|
<file alias="icons/message-indicator-symbolic.svg">message-indicator-symbolic.svg</file>
|
||||||
<file>no-events.svg</file>
|
<file>no-events.svg</file>
|
||||||
<file>no-notifications.svg</file>
|
<file>no-notifications.svg</file>
|
||||||
<file>noise-texture.png</file>
|
|
||||||
<file>pad-osd.css</file>
|
<file>pad-osd.css</file>
|
||||||
<file alias="icons/eye-open-negative-filled-symbolic.svg">eye-open-negative-filled-symbolic.svg</file>
|
<file alias="icons/eye-open-negative-filled-symbolic.svg">eye-open-negative-filled-symbolic.svg</file>
|
||||||
<file alias="icons/eye-not-looking-symbolic.svg">eye-not-looking-symbolic.svg</file>
|
<file alias="icons/eye-not-looking-symbolic.svg">eye-not-looking-symbolic.svg</file>
|
||||||
@ -26,6 +19,11 @@
|
|||||||
<file alias="icons/pointer-drag-symbolic.svg">pointer-drag-symbolic.svg</file>
|
<file alias="icons/pointer-drag-symbolic.svg">pointer-drag-symbolic.svg</file>
|
||||||
<file alias="icons/pointer-primary-click-symbolic.svg">pointer-primary-click-symbolic.svg</file>
|
<file alias="icons/pointer-primary-click-symbolic.svg">pointer-primary-click-symbolic.svg</file>
|
||||||
<file alias="icons/pointer-secondary-click-symbolic.svg">pointer-secondary-click-symbolic.svg</file>
|
<file alias="icons/pointer-secondary-click-symbolic.svg">pointer-secondary-click-symbolic.svg</file>
|
||||||
|
<file alias="icons/keyboard-caps-lock-filled-symbolic.svg">keyboard-caps-lock-filled-symbolic.svg</file>
|
||||||
|
<file alias="icons/keyboard-enter-symbolic.svg">keyboard-enter-symbolic.svg</file>
|
||||||
|
<file alias="icons/keyboard-hide-symbolic.svg">keyboard-hide-symbolic.svg</file>
|
||||||
|
<file alias="icons/keyboard-layout-filled-symbolic.svg">keyboard-layout-filled-symbolic.svg</file>
|
||||||
|
<file alias="icons/keyboard-shift-filled-symbolic.svg">keyboard-shift-filled-symbolic.svg</file>
|
||||||
<file>process-working.svg</file>
|
<file>process-working.svg</file>
|
||||||
<file>toggle-off.svg</file>
|
<file>toggle-off.svg</file>
|
||||||
<file>toggle-off-dark.svg</file>
|
<file>toggle-off-dark.svg</file>
|
||||||
|
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 6.1 KiB |
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M6.5 1.031c-.371 0-.742-.035-1.11.016-.367.05-.73.203-.972.476-.125.141-.215.309-.266.485-.047.18-.054.367-.02.55.032.184.102.356.192.516.09.164.203.309.317.457L5 4H2a1.8 1.8 0 00-.41.035.791.791 0 00-.36.195.791.791 0 00-.195.36C1 4.723 1 4.863 1 5v2.75l.77-.344c.265-.117.542-.23.832-.242.289-.016.586.074.812.254.227.18.383.441.465.723.082.277.101.57.121.859.02.316.04.637-.016.95-.058.312-.199.616-.43.831a1.264 1.264 0 01-.874.32c-.317-.007-.618-.128-.91-.257L1 10.5V14c0 .137.004.277.035.41a.791.791 0 00.195.36c.098.097.227.16.36.195.133.035.273.035.41.035h3l-.328-.68c-.14-.293-.274-.597-.29-.922-.015-.32.095-.652.31-.894.214-.242.523-.39.84-.453.316-.067.644-.059.968-.059.324 0 .652-.008.969.059.316.062.625.21.84.453.214.242.324.574.308.894-.015.325-.148.63-.289.922L8 15h3a1.8 1.8 0 00.41-.035.791.791 0 00.36-.195.791.791 0 00.195-.36C12 14.277 12 14.137 12 14v-3.563l.703.297c.29.125.59.239.902.246.313.004.63-.101.864-.308.238-.203.386-.496.46-.8C15 9.565 15 9.25 15 8.937c0-.313 0-.63-.07-.934-.075-.305-.223-.598-.461-.8a1.288 1.288 0 00-.864-.31c-.312.008-.613.122-.902.247L12 7.437V5a1.8 1.8 0 00-.035-.41.791.791 0 00-.195-.36.791.791 0 00-.36-.195C11.277 4 11.137 4 11 4H8l.36-.469c.113-.148.226-.293.316-.457.09-.16.16-.332.191-.515a1.248 1.248 0 00-.02-.551 1.256 1.256 0 00-.265-.485c-.242-.273-.605-.425-.973-.476-.367-.05-.738-.016-1.109-.016zm0 0" fill="#474747"/></svg>
|
After Width: | Height: | Size: 1.4 KiB |
1
data/icons/meson.build
Normal file
@ -0,0 +1 @@
|
|||||||
|
install_subdir('hicolor', install_dir: icondir)
|
@ -1,6 +1,6 @@
|
|||||||
desktop_files = [
|
desktop_files = [
|
||||||
'org.gnome.Shell.desktop',
|
'org.gnome.Shell.desktop',
|
||||||
'gnome-shell-extension-prefs.desktop'
|
'org.gnome.Extensions.desktop',
|
||||||
]
|
]
|
||||||
service_files = []
|
service_files = []
|
||||||
|
|
||||||
@ -13,7 +13,6 @@ desktopconf = configuration_data()
|
|||||||
# We substitute in bindir so it works as an autostart
|
# We substitute in bindir so it works as an autostart
|
||||||
# file when built in a non-system prefix
|
# file when built in a non-system prefix
|
||||||
desktopconf.set('bindir', bindir)
|
desktopconf.set('bindir', bindir)
|
||||||
desktopconf.set('VERSION', meson.project_version())
|
|
||||||
desktopconf.set('systemd_hidden', have_systemd ? 'true' : 'false')
|
desktopconf.set('systemd_hidden', have_systemd ? 'true' : 'false')
|
||||||
|
|
||||||
foreach desktop_file : desktop_files
|
foreach desktop_file : desktop_files
|
||||||
@ -44,6 +43,7 @@ endforeach
|
|||||||
|
|
||||||
|
|
||||||
subdir('dbus-interfaces')
|
subdir('dbus-interfaces')
|
||||||
|
subdir('icons')
|
||||||
subdir('theme')
|
subdir('theme')
|
||||||
|
|
||||||
data_resources = [
|
data_resources = [
|
||||||
|
9
data/org.gnome.Extensions.desktop.in.in
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Extensions
|
||||||
|
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
|
||||||
|
Icon=org.gnome.Extensions
|
||||||
|
Comment=Configure GNOME Shell Extensions
|
||||||
|
Exec=@bindir@/gnome-shell-extension-prefs %u
|
||||||
|
Categories=GNOME;GTK;
|
||||||
|
OnlyShowIn=GNOME;
|
@ -3,10 +3,6 @@ Type=Application
|
|||||||
Name=GNOME Shell
|
Name=GNOME Shell
|
||||||
Comment=Window management and application launching
|
Comment=Window management and application launching
|
||||||
Exec=@bindir@/gnome-shell
|
Exec=@bindir@/gnome-shell
|
||||||
X-GNOME-Bugzilla-Bugzilla=GNOME
|
|
||||||
X-GNOME-Bugzilla-Product=gnome-shell
|
|
||||||
X-GNOME-Bugzilla-Component=general
|
|
||||||
X-GNOME-Bugzilla-Version=@VERSION@
|
|
||||||
Categories=GNOME;GTK;Core;
|
Categories=GNOME;GTK;Core;
|
||||||
OnlyShowIn=GNOME;
|
OnlyShowIn=GNOME;
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
</description>
|
</description>
|
||||||
</key>
|
</key>
|
||||||
<key name="favorite-apps" type="as">
|
<key name="favorite-apps" type="as">
|
||||||
<default>[ 'org.gnome.Epiphany.desktop', 'org.gnome.Evolution.desktop', 'rhythmbox.desktop', 'org.gnome.Shotwell.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop' ]</default>
|
<default>[ 'org.gnome.Epiphany.desktop', 'org.gnome.Geary.desktop', 'org.gnome.Calendar.desktop', 'org.gnome.Music.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop' ]</default>
|
||||||
<summary>List of desktop file IDs for favorite applications</summary>
|
<summary>List of desktop file IDs for favorite applications</summary>
|
||||||
<description>
|
<description>
|
||||||
The applications corresponding to these identifiers
|
The applications corresponding to these identifiers
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
$variant: 'light';
|
$variant: 'dark';
|
||||||
|
|
||||||
@import "gnome-shell-sass/_high-contrast-colors"; //use gtk colors
|
@import "gnome-shell-sass/_high-contrast-colors"; //use gtk colors
|
||||||
@import "gnome-shell-sass/_drawing";
|
@import "gnome-shell-sass/_drawing";
|
||||||
@import "gnome-shell-sass/_common";
|
@import "gnome-shell-sass/_common";
|
||||||
|
@import "gnome-shell-sass/_widgets";
|
||||||
|
|
||||||
//force symbolic icons
|
//force symbolic icons
|
||||||
stage {
|
stage {
|
||||||
-st-icon-style: symbolic;
|
-st-icon-style: symbolic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle-switch { width: 48px; }
|
.toggle-switch { width: 48px; }
|
||||||
.toggle-switch-us, .toggle-switch-intl {
|
.toggle-switch-us, .toggle-switch-intl {
|
||||||
background-image: url("resource:///org/gnome/shell/theme/toggle-off-hc.svg");
|
background-image: url("resource:///org/gnome/shell/theme/toggle-off-hc.svg");
|
||||||
&:checked { background-image: url("resource:///org/gnome/shell/theme/toggle-on-hc.svg"); }
|
&:checked { background-image: url("resource:///org/gnome/shell/theme/toggle-on-hc.svg"); }
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
// When color definition differs for dark and light variant,
|
// When color definition differs for dark and light variant,
|
||||||
// it gets @if ed depending on $variant
|
// it gets @if ed depending on $variant
|
||||||
|
|
||||||
|
$base_color: if($variant == 'light', #fff, lighten(desaturate(#241f31, 20%), 2%));
|
||||||
$base_color: if($variant == 'light', #ffffff, lighten(desaturate(#241f31, 20%), 2%));
|
|
||||||
$bg_color: if($variant == 'light', #f6f5f4, darken(desaturate(#3d3846, 100%), 4%));
|
$bg_color: if($variant == 'light', #f6f5f4, darken(desaturate(#3d3846, 100%), 4%));
|
||||||
$fg_color: if($variant == 'light', #2e3436, #eeeeec);
|
$fg_color: if($variant == 'light', #2e3436, #eeeeec);
|
||||||
|
|
||||||
$selected_fg_color: #ffffff;
|
$selected_fg_color: #fff;
|
||||||
$selected_bg_color: if($variant == 'light', #3584e4, darken(#3584e4, 10%));
|
$selected_bg_color: if($variant == 'light', #3584e4, darken(#3584e4, 10%));
|
||||||
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), darken($selected_bg_color, 30%));
|
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), darken($selected_bg_color, 30%));
|
||||||
$borders_color: if($variant == 'light', darken($bg_color, 18%), darken($bg_color, 10%));
|
$borders_color: if($variant == 'light', darken($bg_color, 18%), darken($bg_color, 8%));
|
||||||
$borders_edge: if($variant == 'light', transparentize(white, 0.2), transparentize($fg_color, 0.93));
|
$borders_edge: if($variant == 'light', rgba(255,255,255,0.8), transparentize($fg_color, 0.93));
|
||||||
$link_color: if($variant == 'light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 20%));
|
$link_color: if($variant == 'light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 20%));
|
||||||
$link_visited_color: if($variant == 'light', darken($selected_bg_color, 20%), lighten($selected_bg_color, 10%));
|
$link_visited_color: if($variant == 'light', darken($selected_bg_color, 20%), lighten($selected_bg_color, 10%));
|
||||||
$top_hilight: $borders_edge;
|
$top_hilight: $borders_edge;
|
||||||
@ -28,13 +27,12 @@ $osd_insensitive_fg_color: mix($osd_fg_color, opacify($osd_bg_color, 1), 50%);
|
|||||||
$osd_borders_color: transparentize(black, 0.3);
|
$osd_borders_color: transparentize(black, 0.3);
|
||||||
$osd_outer_borders_color: transparentize(white, 0.84);
|
$osd_outer_borders_color: transparentize(white, 0.84);
|
||||||
|
|
||||||
$tooltip_borders_color: $osd_outer_borders_color;
|
$shadow_color: if($variant == 'light', rgba(0,0,0,0.1), rgba(0,0,0,0.2));
|
||||||
$shadow_color: transparentize(black, 0.9);
|
|
||||||
|
|
||||||
//insensitive state derived colors
|
//insensitive state derived colors
|
||||||
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
|
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
|
||||||
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
|
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
|
||||||
$insensitive_borders_color: $borders_color;
|
$insensitive_borders_color: mix($borders_color, $base_color, 60%);
|
||||||
|
|
||||||
//colors for the backdrop state, derived from the main colors.
|
//colors for the backdrop state, derived from the main colors.
|
||||||
$backdrop_base_color: if($variant =='light', darken($base_color,1%), lighten($base_color,1%));
|
$backdrop_base_color: if($variant =='light', darken($base_color,1%), lighten($base_color,1%));
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// generic drawing of more complex things
|
// generic drawing of more complex things
|
||||||
|
|
||||||
@function _widget_edge($c:$borders_edge) {
|
@function draw_widget_edge($c:$borders_edge) {
|
||||||
// outer highlight "used" on most widgets
|
// outer highlight "used" on most widgets
|
||||||
@return 0 1px $c;
|
@return 0 1px $c;
|
||||||
}
|
}
|
||||||
@ -13,7 +13,7 @@
|
|||||||
//font-size: ($size / $base) * 1rem;
|
//font-size: ($size / $base) * 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin _shadows($shadow1, $shadow2:none, $shadow3:none, $shadow4:none) {
|
@mixin draw_shadows($shadow1, $shadow2:none, $shadow3:none, $shadow4:none) {
|
||||||
//
|
//
|
||||||
// Helper function to stack up to 4 box-shadows;
|
// Helper function to stack up to 4 box-shadows;
|
||||||
//
|
//
|
||||||
@ -31,8 +31,7 @@
|
|||||||
//
|
//
|
||||||
// $t: entry type
|
// $t: entry type
|
||||||
// $fc: focus color
|
// $fc: focus color
|
||||||
// $edge: set to none to not draw the bottom edge or specify a color to not
|
// $edge: set to none to not draw the bottom edge or specify a color to not use the default one
|
||||||
// use the default one
|
|
||||||
//
|
//
|
||||||
// possible $t values:
|
// possible $t values:
|
||||||
// normal, focus, insensitive
|
// normal, focus, insensitive
|
||||||
@ -45,8 +44,9 @@
|
|||||||
}
|
}
|
||||||
@if $t==focus {
|
@if $t==focus {
|
||||||
border-color: if($fc==$selected_bg_color,
|
border-color: if($fc==$selected_bg_color,
|
||||||
$selected_borders_color,
|
$selected_borders_color,
|
||||||
darken($fc,35%));
|
darken($fc,35%));
|
||||||
|
box-shadow: inset 0 0 0 1px $fc;
|
||||||
}
|
}
|
||||||
@if $t==hover { }
|
@if $t==hover { }
|
||||||
@if $t==insensitive {
|
@if $t==insensitive {
|
||||||
@ -58,36 +58,39 @@
|
|||||||
|
|
||||||
// buttons
|
// buttons
|
||||||
|
|
||||||
@function _border_color ($c) { @return darken($c,25%); } // colored buttons want
|
@function draw_border_color ($c) {
|
||||||
// the border form the
|
//
|
||||||
// base color
|
// colored buttons want the border form the base color
|
||||||
|
//
|
||||||
|
@return if($variant == 'light', darken($c, 18%), darken($c, 4%));
|
||||||
|
}
|
||||||
|
|
||||||
@function _text_shadow_color ($tc:$fg_color, $bg:$bg_color) {
|
@function draw_text_shadow_color ($tc:$fg_color, $bg:$bg_color) {
|
||||||
//
|
//
|
||||||
// calculate the color of text shadows
|
// calculate the color of text shadows
|
||||||
//
|
//
|
||||||
// $tc is the text color
|
// $tc is the text color
|
||||||
// $bg is the background color
|
// $bg is the background color
|
||||||
//
|
//
|
||||||
$_lbg: lightness($bg)/100%;
|
$lbg: lightness($bg)/100%;
|
||||||
@if lightness($tc)<50% { @return transparentize(white,1-$_lbg/($_lbg*1.3)); }
|
@if lightness($tc)<50% { @return rgba(255,255,255,$lbg/($lbg*1.3)); }
|
||||||
@else { @return transparentize(black,$_lbg*0.8); }
|
@else { @return rgba(0,0,0,1-$lbg*0.8); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@function _button_hilight_color($c) {
|
@function draw_button_hilight_color($c) {
|
||||||
//
|
//
|
||||||
// calculate the right top hilight color for buttons
|
// calculate the right top hilight color for buttons
|
||||||
//
|
//
|
||||||
// $c: base color;
|
// $c: base color;
|
||||||
//
|
//
|
||||||
@if lightness($c)>90% { @return white; }
|
@if lightness($c)>90% { @return white; }
|
||||||
@else if lightness($c)>80% { @return transparentize(white, 0.3); }
|
@else if lightness($c)>80% { @return rgba(255,255,255, 0.7); }
|
||||||
@else if lightness($c)>50% { @return transparentize(white, 0.5); }
|
@else if lightness($c)>50% { @return rgba(255,255,255, 0.5); }
|
||||||
@else if lightness($c)>40% { @return transparentize(white, 0.7); }
|
@else if lightness($c)>40% { @return rgba(255,255,255, 0.3); }
|
||||||
@else { @return transparentize(white, 0.9); }
|
@else { @return rgba(255,255,255, 0.1); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin _button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
|
@mixin draw_button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
|
||||||
//
|
//
|
||||||
// helper function for the text emboss effect
|
// helper function for the text emboss effect
|
||||||
//
|
//
|
||||||
@ -96,19 +99,19 @@
|
|||||||
// TODO: this functions needs a way to deal with special cases
|
// TODO: this functions needs a way to deal with special cases
|
||||||
//
|
//
|
||||||
|
|
||||||
$_shadow: _text_shadow_color($tc, $bg);
|
$shadow: draw_text_shadow_color($tc, $bg);
|
||||||
|
|
||||||
@if lightness($tc)<50% {
|
@if lightness($tc)<50% {
|
||||||
text-shadow: 0 1px $_shadow;
|
text-shadow: 0 1px $shadow;
|
||||||
icon-shadow: 0 1px $_shadow;
|
icon-shadow: 0 1px $shadow;
|
||||||
}
|
}
|
||||||
@else {
|
@else {
|
||||||
text-shadow: 0 -1px $_shadow;
|
text-shadow: 0 -1px $shadow;
|
||||||
icon-shadow: 0 -1px $_shadow;
|
icon-shadow: 0 -1px $shadow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin button($t, $c:$bg_color, $tc:$fg_color, $edge: $borders_edge) {
|
@mixin button($t, $c:$bg_color, $tc:$fg_color, $edge: $borders_edge, $shadow: $shadow_color) {
|
||||||
//
|
//
|
||||||
// Button drawing function
|
// Button drawing function
|
||||||
//
|
//
|
||||||
@ -117,6 +120,8 @@
|
|||||||
// $tc: optional text color for colored* types
|
// $tc: optional text color for colored* types
|
||||||
// $edge: set to none to not draw the bottom edge or specify a color to not
|
// $edge: set to none to not draw the bottom edge or specify a color to not
|
||||||
// use the default one
|
// use the default one
|
||||||
|
// $shadow: set to none to not draw the drop shadow or specify a color to not
|
||||||
|
// use the default one
|
||||||
//
|
//
|
||||||
// possible $t values:
|
// possible $t values:
|
||||||
// normal, hover, active, insensitive, insensitive-active,
|
// normal, hover, active, insensitive, insensitive-active,
|
||||||
@ -124,59 +129,53 @@
|
|||||||
// osd, osd-hover, osd-active, osd-insensitive, osd-backdrop, undecorated
|
// osd, osd-hover, osd-active, osd-insensitive, osd-backdrop, undecorated
|
||||||
//
|
//
|
||||||
|
|
||||||
$_hilight_color: _button_hilight_color($c);
|
$hilight_color: draw_button_hilight_color($c);
|
||||||
$_button_edge: if($edge == none, none, _widget_edge($edge));
|
$button_edge: if($edge == none, none, draw_widget_edge($edge));
|
||||||
$_blank_edge: if($edge == none, none, _widget_edge(transparentize($edge,1)));
|
$blank_edge: if($edge == none, none, draw_widget_edge(transparentize($edge,1)));
|
||||||
$_button_shadow: 0 1px 2px transparentize($shadow_color, 0.03);
|
$button_shadow: if($shadow == none, none, 0 1px 1px 0 $shadow);
|
||||||
|
|
||||||
@if $t==normal {
|
|
||||||
//
|
|
||||||
// normal button
|
// normal button
|
||||||
//
|
@if $t==normal {
|
||||||
|
|
||||||
color: $tc;
|
color: $tc;
|
||||||
background-color: $c;
|
background-color: lighten($c, 3%);
|
||||||
border-color: $borders_color;
|
border-color: draw_border_color($c);
|
||||||
box-shadow: $_button_shadow;
|
@include draw_shadows($button_shadow);
|
||||||
text-shadow: 0 1px black;
|
// box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||||
icon-shadow: 0 1px black;
|
text-shadow: 0 1px $text_shadow_color;
|
||||||
|
icon-shadow: 0 1px $text_shadow_color;
|
||||||
}
|
}
|
||||||
@if $t==focus {
|
|
||||||
//
|
|
||||||
// focused button
|
// focused button
|
||||||
//
|
@if $t==focus {
|
||||||
color: $tc;
|
color: $tc;
|
||||||
text-shadow: 0 1px black;
|
text-shadow: 0 1px $text_shadow_color;
|
||||||
icon-shadow: 0 1px black;
|
icon-shadow: 0 1px $text_shadow_color;
|
||||||
box-shadow: inset 0px 0px 0px 2px $selected_bg_color;
|
box-shadow: inset 0 0 0 2px transparentize($selected_bg_color, 0.4);
|
||||||
//border-color: $selected_bg_color;
|
//border-color: $selected_bg_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// hover button
|
||||||
@else if $t==hover {
|
@else if $t==hover {
|
||||||
//
|
|
||||||
// active osd button
|
|
||||||
//
|
|
||||||
color: $tc;
|
color: $tc;
|
||||||
border-color: $borders_color;
|
background-color: lighten($c, if($variant == 'light', 8%, 5%));
|
||||||
background-color: $c;
|
border-color: if($variant == 'light', draw_border_color(lighten($c, 7%)), draw_border_color($c));
|
||||||
box-shadow: $_button_shadow;
|
@include draw_shadows($button_shadow);
|
||||||
text-shadow: 0 1px black;
|
text-shadow: 0 1px $text_shadow_color;
|
||||||
icon-shadow: 0 1px black;
|
icon-shadow: 0 1px $text_shadow_color;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// active button
|
||||||
@else if $t==active {
|
@else if $t==active {
|
||||||
//
|
|
||||||
// active osd button
|
|
||||||
//
|
|
||||||
color: $tc;
|
color: $tc;
|
||||||
border-color: $borders_color;
|
background-color: darken($c,3%);
|
||||||
background-color: $c;
|
border-color: draw_border_color(if($variant == 'light', $c, darken($c,7%)));
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
icon-shadow: none;
|
icon-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
@else if $t==insensitive {
|
|
||||||
|
|
||||||
|
// insensitive button
|
||||||
|
@else if $t==insensitive {
|
||||||
color: $insensitive_fg_color;
|
color: $insensitive_fg_color;
|
||||||
border-color: $insensitive_borders_color;
|
border-color: $insensitive_borders_color;
|
||||||
background-color: $insensitive_bg_color;
|
background-color: $insensitive_bg_color;
|
||||||
@ -184,19 +183,49 @@
|
|||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
icon-shadow: none;
|
icon-shadow: none;
|
||||||
}
|
}
|
||||||
@else if $t==undecorated {
|
|
||||||
//
|
|
||||||
// reset
|
// reset
|
||||||
//
|
@else if $t==undecorated {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
@include draw_shadows(inset 0 1px rgba(255,255,255,0),$blank_edge);
|
||||||
@include _shadows(inset 0 1px transparentize(white,1),
|
|
||||||
$_blank_edge);
|
|
||||||
|
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
icon-shadow: none;
|
icon-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// overview icons
|
||||||
|
@mixin overview-icon($color) {
|
||||||
|
.overview-icon {
|
||||||
|
@extend %icon_tile;
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:selected {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize($color, .9);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize($color, .7);
|
||||||
|
// border-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:drop {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize($selected_bg_color, .15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize(darken($osd_bg_color, 10%), .5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -22,11 +22,10 @@ $destructive_color: darken(#ef2929,10%);
|
|||||||
|
|
||||||
$osd_fg_color: #eeeeec;
|
$osd_fg_color: #eeeeec;
|
||||||
$osd_bg_color: #2e3436;
|
$osd_bg_color: #2e3436;
|
||||||
$osd_borders_color: transparentize(black, 0.3);
|
$osd_borders_color: rgba(0,0,0, 0.7);
|
||||||
$osd_outer_borders_color: transparentize(white, 0.9);
|
$osd_outer_borders_color: rgba(255,255,255, 0.1);
|
||||||
|
|
||||||
$tooltip_borders_color: $osd_outer_borders_color;
|
$shadow_color: rgba(0,0,0, 0.1);
|
||||||
$shadow_color: transparentize(black, 0.9);
|
|
||||||
|
|
||||||
//insensitive state derived colors
|
//insensitive state derived colors
|
||||||
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
|
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
|
||||||
|
51
data/theme/gnome-shell-sass/_widgets.scss
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
//
|
||||||
|
// Shell widgets stylesheets are placed in separate .scss files
|
||||||
|
// in 'widgets' and imported into the main stylesheet in this file.
|
||||||
|
// To create or update a widget for the shell modify the list below.
|
||||||
|
//
|
||||||
|
|
||||||
|
/* WIDGETS */
|
||||||
|
|
||||||
|
// Primary widgets
|
||||||
|
@import 'widgets/base';
|
||||||
|
@import 'widgets/entries';
|
||||||
|
@import 'widgets/buttons';
|
||||||
|
@import 'widgets/check-box';
|
||||||
|
@import 'widgets/switches';
|
||||||
|
@import 'widgets/slider';
|
||||||
|
@import 'widgets/scrollbars';
|
||||||
|
// Popovers
|
||||||
|
@import 'widgets/popovers';
|
||||||
|
@import 'widgets/calendar';
|
||||||
|
@import 'widgets/message-list';
|
||||||
|
@import 'widgets/ibus-popup';
|
||||||
|
// Notifications
|
||||||
|
@import 'widgets/notifications';
|
||||||
|
@import 'widgets/hotplug';
|
||||||
|
// Dialogs
|
||||||
|
@import 'widgets/dialogs';
|
||||||
|
@import 'widgets/network-dialog';
|
||||||
|
// OSDs
|
||||||
|
@import 'widgets/osd';
|
||||||
|
@import 'widgets/switcher-popup';
|
||||||
|
@import 'widgets/workspace-switcher';
|
||||||
|
// Panel
|
||||||
|
@import 'widgets/panel';
|
||||||
|
@import 'widgets/corner-ripple';
|
||||||
|
// Overview
|
||||||
|
@import 'widgets/overview';
|
||||||
|
@import 'widgets/window-picker';
|
||||||
|
@import 'widgets/search-entry';
|
||||||
|
@import 'widgets/search-results';
|
||||||
|
@import 'widgets/app-grid';
|
||||||
|
@import 'widgets/dash';
|
||||||
|
@import 'widgets/workspace-thumbnails';
|
||||||
|
// A11y / misc
|
||||||
|
@import 'widgets/a11y';
|
||||||
|
@import 'widgets/misc';
|
||||||
|
@import 'widgets/tiled-previews';
|
||||||
|
@import 'widgets/keyboard';
|
||||||
|
@import 'widgets/looking-glass';
|
||||||
|
// Lock / login screens
|
||||||
|
@import 'widgets/login-dialog';
|
||||||
|
@import 'widgets/screen-shield';
|
24
data/theme/gnome-shell-sass/widgets/_a11y.scss
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// Pointer location
|
||||||
|
.ripple-pointer-location {
|
||||||
|
width: $ripple_size;
|
||||||
|
height: $ripple_size;
|
||||||
|
border-radius: $ripple_size * 0.5; // radius equals the size of the box to give us the curve
|
||||||
|
background-color: lighten(transparentize($selected_bg_color, 0.7), 30%);
|
||||||
|
box-shadow: 0 0 2px 2px lighten($selected_bg_color, 20%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pointer accessibility notifications
|
||||||
|
.pie-timer {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
-pie-border-width: 3px;
|
||||||
|
-pie-border-color: $selected_bg_color;
|
||||||
|
-pie-background-color: lighten(transparentize($selected_bg_color, 0.7), 40%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Screen zoom/Magnifier
|
||||||
|
.magnifier-zoom-region {
|
||||||
|
border: 2px solid $selected_bg_color;
|
||||||
|
|
||||||
|
&.full-screen { border-width: 0; }
|
||||||
|
}
|
186
data/theme/gnome-shell-sass/widgets/_app-grid.scss
Normal file
@ -0,0 +1,186 @@
|
|||||||
|
/* App Grid */
|
||||||
|
|
||||||
|
$app_icon_size: 96px;
|
||||||
|
$app_icon_padding: 24px;
|
||||||
|
|
||||||
|
// app icons
|
||||||
|
.icon-grid {
|
||||||
|
-shell-grid-horizontal-item-size: $app_icon_size + $app_icon_padding * 2;
|
||||||
|
-shell-grid-vertical-item-size: $app_icon_size + $app_icon_padding * 2;
|
||||||
|
spacing: $base_spacing * 6;
|
||||||
|
|
||||||
|
.overview-icon {
|
||||||
|
icon-size: $app_icon_size;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//.app-display { spacing: 20px; }
|
||||||
|
|
||||||
|
/* App Icons */
|
||||||
|
|
||||||
|
$app_grid_fg_color: #fff;
|
||||||
|
|
||||||
|
// Icon tiles in the app grid
|
||||||
|
.app-well-app,
|
||||||
|
%app-well-app {
|
||||||
|
@include overview-icon($app_grid_fg_color);
|
||||||
|
|
||||||
|
.overview-icon.overview-icon-with-label {
|
||||||
|
padding: 10px 8px 5px 8px;
|
||||||
|
|
||||||
|
> StBoxLayout {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* App Folders */
|
||||||
|
.app-folder {
|
||||||
|
.overview-icon {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// expanded folder
|
||||||
|
.app-folder-dialog {
|
||||||
|
border-radius: $modal_radius * 1.5;
|
||||||
|
border: 1px solid $osd_outer_borders_color;
|
||||||
|
spacing: 12px;
|
||||||
|
background-color: transparentize(darken($osd_bg_color,10%), 0.05);
|
||||||
|
|
||||||
|
& .folder-name-container {
|
||||||
|
padding: 24px 36px 0;
|
||||||
|
spacing: 12px;
|
||||||
|
|
||||||
|
& .folder-name-label,
|
||||||
|
& .folder-name-entry {
|
||||||
|
font-size: 18pt;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .folder-name-entry { width: 300px }
|
||||||
|
|
||||||
|
/* FIXME: this is to keep the label in sync with the entry */
|
||||||
|
& .folder-name-label { padding: 5px 7px; color: $osd_fg_color; }
|
||||||
|
|
||||||
|
& .edit-folder-button {
|
||||||
|
@extend %button;
|
||||||
|
|
||||||
|
padding: 0;
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 18px;
|
||||||
|
|
||||||
|
& > StIcon { icon-size: 16px }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& StButton#vhandle,
|
||||||
|
& StButton#vhandle:hover,
|
||||||
|
& StButton#vhandle:active { background-color: transparent; }
|
||||||
|
}
|
||||||
|
.app-folder-dialog-container {
|
||||||
|
padding: 12px;
|
||||||
|
width: 800px;
|
||||||
|
height: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-folder-icon {
|
||||||
|
padding: $base_padding;
|
||||||
|
spacing-rows: $base_spacing;
|
||||||
|
spacing-columns: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Running app indicator (also shown in dash)
|
||||||
|
.app-well-app-running-dot {
|
||||||
|
height: 5px;
|
||||||
|
width: 5px;
|
||||||
|
border-radius:5px;
|
||||||
|
background-color: $osd_fg_color;
|
||||||
|
margin-bottom: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Rename popup for app folders
|
||||||
|
.rename-folder-popup {
|
||||||
|
.rename-folder-popup-item {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
&:ltr, &:rtl { padding: 0 $base_padding * 2; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// right-click app menu
|
||||||
|
.app-menu,
|
||||||
|
.app-well-menu {
|
||||||
|
max-width: 27.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
// App Grid pagination indicators
|
||||||
|
.page-indicator {
|
||||||
|
padding: 15px 20px;
|
||||||
|
|
||||||
|
.page-indicator-icon {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
border-radius: 10px; // the same as height&width
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Some hacks I don't even know
|
||||||
|
.all-apps,
|
||||||
|
.frequent-apps > StBoxLayout {
|
||||||
|
// horizontal padding to make sure scrollbars or dash don't overlap content
|
||||||
|
padding: 0px 88px 10px 88px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Label when no frequent apps
|
||||||
|
.no-frequent-applications-label { @extend %status_text; }
|
||||||
|
|
||||||
|
// shutdown and other actions in the grid
|
||||||
|
.system-action-icon {
|
||||||
|
background-color: rgba(0,0,0,0.8);
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 99px;
|
||||||
|
icon-size: $app_icon_size * 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Frequent | All toggle */
|
||||||
|
|
||||||
|
// container
|
||||||
|
.app-view-controls {
|
||||||
|
padding-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// buttons
|
||||||
|
.app-view-control {
|
||||||
|
padding: 4px 32px;
|
||||||
|
margin: 0 4px;
|
||||||
|
|
||||||
|
&, &:hover, &:checked {
|
||||||
|
@include button(undecorated);
|
||||||
|
color: darken($osd_fg_color, 25%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
box-shadow: inset 0 -2px darken($osd_fg_color, 25%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
box-shadow: inset 0 -2px $osd_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:checked {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
box-shadow: inset 0 -2px $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-right-width: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
18
data/theme/gnome-shell-sass/widgets/_base.scss
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// Links
|
||||||
|
.shell-link {
|
||||||
|
color: $link_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: lighten($link_color, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Outline for low res icons
|
||||||
|
.lowres-icon {
|
||||||
|
icon-shadow: 0 1px 2px rgba(black, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropshadow for large icons
|
||||||
|
.icon-dropshadow {
|
||||||
|
icon-shadow: 0 1px 2px rgba(black, 0.4);
|
||||||
|
}
|
5
data/theme/gnome-shell-sass/widgets/_buttons.scss
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/* Buttons */
|
||||||
|
|
||||||
|
.button {
|
||||||
|
@extend %button; // that's it
|
||||||
|
}
|
262
data/theme/gnome-shell-sass/widgets/_calendar.scss
Normal file
@ -0,0 +1,262 @@
|
|||||||
|
/* Date/Time Menu */
|
||||||
|
|
||||||
|
.clock-display-box {
|
||||||
|
spacing: $base_spacing / 2;
|
||||||
|
|
||||||
|
.clock {
|
||||||
|
padding-left: $base_padding;
|
||||||
|
padding-right: $base_padding;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// overall menu
|
||||||
|
#calendarArea {
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Calendar menu side column
|
||||||
|
.datemenu-calendar-column {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
border: 0 solid $bubble_borders_color;
|
||||||
|
padding: 0 $base_padding * 2;
|
||||||
|
|
||||||
|
&:ltr {margin-right: $base_margin * 2; border-left-width: 1px; }
|
||||||
|
&:rtl {margin-left: $base_margin * 2; border-right-width: 1px; }
|
||||||
|
|
||||||
|
.datemenu-displays-section {
|
||||||
|
}
|
||||||
|
|
||||||
|
.datemenu-displays-box {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.events-section-title {
|
||||||
|
@include notification_bubble($flat: true);
|
||||||
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
|
font-weight: bold;
|
||||||
|
padding: .4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* today button (the date) */
|
||||||
|
.datemenu-today-button {
|
||||||
|
@include notification_bubble($flat: true);
|
||||||
|
padding: $base_padding * 1.5;
|
||||||
|
|
||||||
|
// weekday label
|
||||||
|
.day-label {
|
||||||
|
@include fontsize($base_font_size+1);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
// date label
|
||||||
|
.date-label {
|
||||||
|
@include fontsize($base_font_size+7);
|
||||||
|
font-weight: 1000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Calendar */
|
||||||
|
.calendar {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding;
|
||||||
|
|
||||||
|
// month
|
||||||
|
.calendar-month-label {
|
||||||
|
color: lighten($fg_color,5%);
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 8px 0;
|
||||||
|
&:focus {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// prev/next month icons
|
||||||
|
.calendar-change-month-back StIcon,
|
||||||
|
.calendar-change-month-forward StIcon {
|
||||||
|
icon-size: $base_icon_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager-button {
|
||||||
|
background-color: transparent;
|
||||||
|
height: 32px;
|
||||||
|
width: 32px;
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
&:hover, &:focus { background-color: lighten($hover_bg_color, 5%); }
|
||||||
|
&:active { background-color: $active_bg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$calendar_day_size: 32px;
|
||||||
|
|
||||||
|
.calendar-day-base {
|
||||||
|
@include fontsize($base_font_size - 3);
|
||||||
|
text-align: center;
|
||||||
|
width: $calendar_day_size;
|
||||||
|
height: $calendar_day_size;
|
||||||
|
padding: 0;
|
||||||
|
margin: 2px;
|
||||||
|
border-radius: $calendar_day_size * 0.5 + 2px;
|
||||||
|
border: 1px solid transparent; //avoid jumparound due to today
|
||||||
|
font-feature-settings: "tnum";
|
||||||
|
&:hover, &:focus { background-color: $hover_bg_color; }
|
||||||
|
&:active,&:selected {
|
||||||
|
color: lighten($fg_color,10%);
|
||||||
|
background-color: darken($bg_color,5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// day of week heading
|
||||||
|
&.calendar-day-heading {
|
||||||
|
color: lighten($fg_color,10%);
|
||||||
|
margin-top: 1em;
|
||||||
|
@include fontsize($base_font_size - 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-day { //border collapse hack - see calendar.js
|
||||||
|
border-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-day-top {
|
||||||
|
border-top-width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-day-left {
|
||||||
|
border-left-width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-work-day {}
|
||||||
|
|
||||||
|
.calendar-nonwork-day {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Today
|
||||||
|
.calendar-today {
|
||||||
|
font-weight: bold;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
|
||||||
|
&:hover,&:focus {
|
||||||
|
background-color:lighten($selected_bg_color, 3%);
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,&:selected {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
|
||||||
|
&:hover,&:focus {
|
||||||
|
background-color:lighten($selected_bg_color, 3%);
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-day-with-events {
|
||||||
|
color: lighten($fg_color,10%);
|
||||||
|
font-weight: bold;
|
||||||
|
background-image: url("resource:///org/gnome/shell/theme/calendar-today.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-other-month-day {
|
||||||
|
color: transparentize($fg_color ,0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-week-number {
|
||||||
|
@include fontsize($base_font_size - 4);
|
||||||
|
font-weight: bold;
|
||||||
|
height: 1.8em;
|
||||||
|
width: 2.3em;
|
||||||
|
border-radius: 2px;
|
||||||
|
padding: 0.5em 0 0;
|
||||||
|
margin: 6px;
|
||||||
|
background-color: darken($bg_color, 2%);
|
||||||
|
color: lighten($fg_color, 5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* World clocks */
|
||||||
|
.world-clocks-button {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
|
||||||
|
.world-clocks-grid {
|
||||||
|
spacing-rows: $base_spacing;
|
||||||
|
spacing-columns: $base_spacing * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// title
|
||||||
|
.world-clocks-header {
|
||||||
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
// city label
|
||||||
|
.world-clocks-city {
|
||||||
|
color: $fg_color;
|
||||||
|
@include fontsize($base_font_size);
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
// timezone time
|
||||||
|
.world-clocks-time {
|
||||||
|
font-weight: bold;
|
||||||
|
color: $fg_color;
|
||||||
|
font-feature-settings: "lnum";
|
||||||
|
@include fontsize($base_font_size);
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
// timezone offset label
|
||||||
|
.world-clocks-timezone {
|
||||||
|
color: darken($fg_color,20%);
|
||||||
|
font-feature-settings: "tnum";
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Weather */
|
||||||
|
.weather-button {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
|
||||||
|
.weather-box {
|
||||||
|
spacing: $base_spacing + $base_margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-header-box {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-header {
|
||||||
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
&.location {
|
||||||
|
font-weight: normal;
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-grid {
|
||||||
|
spacing-rows: $base_spacing;
|
||||||
|
spacing-columns: $base_spacing * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-forecast-time {
|
||||||
|
color: darken($fg_color,30%);
|
||||||
|
font-feature-settings: "tnum";
|
||||||
|
@include fontsize($base_font_size - 2);
|
||||||
|
font-weight: normal;
|
||||||
|
padding-top: 0.2em;
|
||||||
|
padding-bottom: 0.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-forecast-icon {
|
||||||
|
icon-size: $base_icon_size * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-forecast-temp {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
18
data/theme/gnome-shell-sass/widgets/_check-box.scss
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/* Check Boxes */
|
||||||
|
|
||||||
|
// these are equal to the size of the SVG assets
|
||||||
|
$check_height: 22px;
|
||||||
|
$check_width: 24px;
|
||||||
|
|
||||||
|
|
||||||
|
.check-box {
|
||||||
|
StBoxLayout { spacing: .8em; }
|
||||||
|
StBin {
|
||||||
|
width: $check_width;
|
||||||
|
height: $check_height;
|
||||||
|
background-image: url("resource:///org/gnome/shell/theme/checkbox-off.svg");
|
||||||
|
}
|
||||||
|
&:focus StBin { background-image: url("resource:///org/gnome/shell/theme/checkbox-off-focused.svg"); }
|
||||||
|
&:checked StBin { background-image: url("resource:///org/gnome/shell/theme/checkbox.svg"); }
|
||||||
|
&:focus:checked StBin { background-image: url("resource:///org/gnome/shell/theme/checkbox-focused.svg"); }
|
||||||
|
}
|
15
data/theme/gnome-shell-sass/widgets/_corner-ripple.scss
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* Activities Ripple */
|
||||||
|
|
||||||
|
$ripple_size: 50px;
|
||||||
|
|
||||||
|
.ripple-box {
|
||||||
|
background-color: lighten(transparentize($selected_bg_color, 0.7), 40%);
|
||||||
|
box-shadow: 0 0 2px 2px lighten($selected_bg_color, 20%);
|
||||||
|
// plus + 2px for the border (box-shadow)
|
||||||
|
width: $ripple_size + 2px;
|
||||||
|
height: $ripple_size + 2px;
|
||||||
|
border-radius: 0 0 $ripple_size + 2px 0; // radius equals the size of the box to give us the curve
|
||||||
|
|
||||||
|
// just a simple change to the border radius position
|
||||||
|
&:rtl { border-radius: 0 0 0 $ripple_size + 2px; }
|
||||||
|
}
|
61
data/theme/gnome-shell-sass/widgets/_dash.scss
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
/* Dash */
|
||||||
|
|
||||||
|
$dash_placeholder_size: 32px;
|
||||||
|
$dash_spacing: $base_padding + 4px;
|
||||||
|
$dash_border_radius: $modal_radius * 1.5;
|
||||||
|
|
||||||
|
#dash {
|
||||||
|
@extend %overview_panel;
|
||||||
|
@include fontsize($base_font_size - 2);
|
||||||
|
padding: ($dash_spacing / 2) 0;
|
||||||
|
|
||||||
|
border-radius: 0 $dash_border_radius $dash_border_radius 0;
|
||||||
|
border-left-width: 0;
|
||||||
|
&:rtl {
|
||||||
|
border-radius: $dash_border_radius 0 0 $dash_border_radius;
|
||||||
|
border-right-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.placeholder {
|
||||||
|
// background-image: url("resource:///org/gnome/shell/theme/dash-placeholder.svg");
|
||||||
|
background-image:none;
|
||||||
|
background-size: contain;
|
||||||
|
height: $dash_placeholder_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-dash-drop-target {
|
||||||
|
width: $dash_placeholder_size;
|
||||||
|
height: $dash_placeholder_size;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dash Items
|
||||||
|
.dash-item-container > StWidget {
|
||||||
|
padding: ($dash_spacing / 2) $dash_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
// OSD Tooltip
|
||||||
|
.dash-label {
|
||||||
|
background-color: transparentize($osd_bg_color,0.05);
|
||||||
|
border-radius: $base_border_radius + 2px;
|
||||||
|
border:none;
|
||||||
|
box-shadow:0 0 0 1px $osd_outer_borders_color;
|
||||||
|
color: $osd_fg_color;
|
||||||
|
padding: $base_padding $base_padding + 2px;
|
||||||
|
text-align: center;
|
||||||
|
-x-offset: $base_margin * 2; // distance from the dash edge
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show apps button
|
||||||
|
.show-apps {
|
||||||
|
@include overview-icon($osd_fg_color);
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:checked {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: darken($osd_bg_color,10%);
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
168
data/theme/gnome-shell-sass/widgets/_dialogs.scss
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
/* Modal Dialogs */
|
||||||
|
|
||||||
|
.headline {
|
||||||
|
@include fontsize($base_font_size + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-dialog {
|
||||||
|
border-radius: $modal_radius;
|
||||||
|
@extend %bubble_panel;
|
||||||
|
|
||||||
|
.modal-dialog-content-box {
|
||||||
|
margin: 32px 40px;
|
||||||
|
spacing: 32px;
|
||||||
|
max-width: 28em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-dialog-linked-button {
|
||||||
|
@extend %bubble_button;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* End Session Dialog */
|
||||||
|
.end-session-dialog {
|
||||||
|
width: 30em;
|
||||||
|
|
||||||
|
.end-session-dialog-battery-warning,
|
||||||
|
.dialog-list-title {
|
||||||
|
color: $warning_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Message Dialog */
|
||||||
|
.message-dialog-content {
|
||||||
|
spacing: 18px;
|
||||||
|
|
||||||
|
.message-dialog-title {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 18pt;
|
||||||
|
font-weight: 800;
|
||||||
|
|
||||||
|
&.leightweight {
|
||||||
|
font-size: 13pt;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.message-dialog-description { text-align: center; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dialog List */
|
||||||
|
.dialog-list {
|
||||||
|
spacing: 18px;
|
||||||
|
|
||||||
|
.dialog-list-title {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-list-scrollview { max-height: 200px; }
|
||||||
|
.dialog-list-box {
|
||||||
|
spacing: 1em;
|
||||||
|
|
||||||
|
.dialog-list-item {
|
||||||
|
spacing: 1em;
|
||||||
|
|
||||||
|
.dialog-list-item-title { font-weight: bold; }
|
||||||
|
.dialog-list-item-description {
|
||||||
|
color: darken($fg_color,5%);
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Run Dialog */
|
||||||
|
.run-dialog {
|
||||||
|
.modal-dialog-content-box {
|
||||||
|
margin-top: 24px;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
.run-dialog-entry { width: 20em; }
|
||||||
|
.run-dialog-description {
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
text-align: center;
|
||||||
|
color: darken($fg_color, 20%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Password or Authentication Dialog */
|
||||||
|
|
||||||
|
.prompt-dialog {
|
||||||
|
width: 28em;
|
||||||
|
|
||||||
|
.modal-dialog-content-box {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt-dialog-password-grid {
|
||||||
|
spacing-rows: 8px;
|
||||||
|
spacing-columns: 4px;
|
||||||
|
|
||||||
|
.prompt-dialog-password-entry {
|
||||||
|
width: auto;
|
||||||
|
|
||||||
|
// 4px (spacing) + 16px (spinner-width)
|
||||||
|
&:ltr { margin-left: 20px; }
|
||||||
|
&:rtl { margin-right: 20px; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt-dialog-password-layout {
|
||||||
|
spacing: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt-dialog-password-entry {
|
||||||
|
width: 20em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt-dialog-error-label,
|
||||||
|
.prompt-dialog-info-label,
|
||||||
|
.prompt-dialog-null-label {
|
||||||
|
text-align: center;
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt-dialog-error-label {
|
||||||
|
color: $warning_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Polkit Dialog */
|
||||||
|
|
||||||
|
.polkit-dialog-user-layout {
|
||||||
|
text-align: center;
|
||||||
|
spacing: 8px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
|
||||||
|
.polkit-dialog-user-icon {
|
||||||
|
border-radius: 99px;
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
.polkit-dialog-user-root-label { color: $warning_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Audio selection dialog */
|
||||||
|
.audio-device-selection-dialog {
|
||||||
|
.modal-dialog-content-box { margin-bottom: 28px; }
|
||||||
|
.audio-selection-box { spacing: 20px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.audio-selection-device {
|
||||||
|
border: 1px solid $bubble_borders_color;
|
||||||
|
border-radius: 12px;
|
||||||
|
&:hover,&:focus { background-color: $hover_bg_color; }
|
||||||
|
&:active {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.audio-selection-device-box {
|
||||||
|
padding: 20px;
|
||||||
|
spacing: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.audio-selection-device-icon {
|
||||||
|
icon-size: $base_icon_size * 4;
|
||||||
|
}
|
27
data/theme/gnome-shell-sass/widgets/_entries.scss
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/* Entries */
|
||||||
|
|
||||||
|
StEntry {
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
padding: 8px;
|
||||||
|
border-width: 1px;
|
||||||
|
color: $fg_color;
|
||||||
|
@include entry(normal);
|
||||||
|
//&:hover { @include entry(hover);}
|
||||||
|
&:focus { @include entry(focus);}
|
||||||
|
&:insensitive { @include entry(insensitive);}
|
||||||
|
selection-background-color: $selected_bg_color;
|
||||||
|
selected-color: $selected_fg_color;
|
||||||
|
StIcon.capslock-warning {
|
||||||
|
icon-size: 16px;
|
||||||
|
warning-color: $warning_color;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
StIcon.peek-password {
|
||||||
|
icon-size: $base_icon_size;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
StLabel.hint-text {
|
||||||
|
margin-left: 2px;
|
||||||
|
color: transparentize($fg_color, 0.3);
|
||||||
|
}
|
||||||
|
}
|
10
data/theme/gnome-shell-sass/widgets/_hotplug.scss
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// hotplug
|
||||||
|
|
||||||
|
.hotplug-notification-item {
|
||||||
|
@extend %bubble_button;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hotplug-notification-item-icon {
|
||||||
|
icon-size: 24px;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
35
data/theme/gnome-shell-sass/widgets/_ibus-popup.scss
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
// IBus Candidate Popup
|
||||||
|
|
||||||
|
.candidate-popup-boxpointer {
|
||||||
|
@extend .popup-menu-boxpointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.candidate-popup-content {
|
||||||
|
padding: 0.5em;
|
||||||
|
spacing: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.candidate-index {
|
||||||
|
padding: 0 0.5em 0 0;
|
||||||
|
color: darken($fg_color,10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.candidate-box {
|
||||||
|
padding: 0.3em 0.5em 0.3em 0.5em;
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
&:selected,&:hover { background-color: $selected_bg_color; color: $selected_fg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.candidate-page-button-box {
|
||||||
|
height: 2em;
|
||||||
|
.vertical & { padding-top: 0.5em; }
|
||||||
|
.horizontal & { padding-left: 0.5em; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.candidate-page-button {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.candidate-page-button-previous { border-radius: $base_border_radius 0px 0px $base_border_radius; border-right-width: 0; }
|
||||||
|
.candidate-page-button-next { border-radius: 0px $base_border_radius $base_border_radius 0px; }
|
||||||
|
.candidate-page-button-icon { icon-size: 1em; }
|
115
data/theme/gnome-shell-sass/widgets/_keyboard.scss
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
/* On-screen Keyboard */
|
||||||
|
|
||||||
|
$key_size: 1.2em;
|
||||||
|
$key_border_radius: $base_border_radius + 3px;
|
||||||
|
$key_bg_color: $bg_color;
|
||||||
|
// $default_key_bg_color: darken($key_bg_color, 4%);
|
||||||
|
$default_key_bg_color: if($variant=='light', darken($osd_bg_color, 11%), lighten($osd_bg_color, 2%));
|
||||||
|
|
||||||
|
|
||||||
|
// draw keys using button function
|
||||||
|
#keyboard {
|
||||||
|
background-color: transparentize(if($variant=='light', darken($bg_color, 5%), darken($bg_color, 8%)), 0.1);
|
||||||
|
box-shadow: inset 0 1px 0 0 $osd_outer_borders_color;
|
||||||
|
|
||||||
|
.page-indicator {
|
||||||
|
padding: $base_padding;
|
||||||
|
|
||||||
|
.page-indicator-icon {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// the container for individual keys
|
||||||
|
.key-container {
|
||||||
|
padding: $base_margin;
|
||||||
|
spacing: $base_margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
// the keys
|
||||||
|
.keyboard-key {
|
||||||
|
|
||||||
|
@include button(normal, $c:$key_bg_color);
|
||||||
|
|
||||||
|
&:focus { @include button(focus);}
|
||||||
|
&:hover, &:checked { @include button(hover, $c: $key_bg_color);}
|
||||||
|
&:active { @include button(active, $c: $key_bg_color); }
|
||||||
|
|
||||||
|
@include fontsize($base_font_size + 5);
|
||||||
|
min-height: $key_size;
|
||||||
|
min-width: $key_size;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-radius: $key_border_radius;
|
||||||
|
|
||||||
|
&:grayed { //FIXMEy
|
||||||
|
background-color: darken($bg_color, 3%);
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// non-character keys
|
||||||
|
&.default-key {
|
||||||
|
@include button(normal, $c:$default_key_bg_color);
|
||||||
|
&:hover, &:checked {@include button(hover, $c: $default_key_bg_color);}
|
||||||
|
&:active { @include button(active, $c: $default_key_bg_color);}
|
||||||
|
}
|
||||||
|
|
||||||
|
// enter key is suggested-action
|
||||||
|
&.enter-key {
|
||||||
|
@include button(normal, $c:$selected_bg_color, $tc:$selected_fg_color);
|
||||||
|
&:hover, &:checked { @include button(hover, $c: lighten($selected_bg_color, 3%));}
|
||||||
|
&:active {@include button(active, $c: darken($selected_bg_color, 2%));}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.shift-key-uppercase { color: $selected_bg_color }
|
||||||
|
|
||||||
|
StIcon { icon-size: 1.125em; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// long press on a key popup
|
||||||
|
.keyboard-subkeys {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
-arrow-border-radius: $modal_radius;
|
||||||
|
-arrow-background-color: $osd_bg_color;
|
||||||
|
-arrow-border-width: 1px;
|
||||||
|
-arrow-border-color: lighten($osd_bg_color, 9%);
|
||||||
|
-arrow-base: 20px;
|
||||||
|
-arrow-rise: 10px;
|
||||||
|
-boxpointer-gap: $base_spacing;
|
||||||
|
|
||||||
|
.keyboard-key {
|
||||||
|
@include button(normal, $c:$key_bg_color);
|
||||||
|
|
||||||
|
&:focus { @include button(focus);}
|
||||||
|
&:hover, &:checked { @include button(hover, $c: $key_bg_color);}
|
||||||
|
&:active { @include button(active, $c: $key_bg_color); }
|
||||||
|
|
||||||
|
border-radius:$base_border_radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// emoji
|
||||||
|
.emoji-page {
|
||||||
|
.keyboard-key {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
color: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.emoji-panel {
|
||||||
|
.keyboard-key:latched {
|
||||||
|
border-color: lighten($selected_bg_color, 5%);
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// suggestions
|
||||||
|
.word-suggestions {
|
||||||
|
@include fontsize($base_font_size + 3);
|
||||||
|
spacing: 12px;
|
||||||
|
min-height: 20pt;
|
||||||
|
}
|
170
data/theme/gnome-shell-sass/widgets/_login-dialog.scss
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
/* Login Dialog */
|
||||||
|
|
||||||
|
.login-dialog-banner-view {
|
||||||
|
padding-top: 24px;
|
||||||
|
max-width: 23em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog {
|
||||||
|
//reset
|
||||||
|
border: none;
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
|
$_gdm_bg: lighten(#2e3436, 19%);
|
||||||
|
|
||||||
|
StEntry {
|
||||||
|
@if $variant=='dark' {
|
||||||
|
$_gdm_entry_bg: transparentize(lighten(desaturate(#241f31, 20%), 2%), 0.5);
|
||||||
|
background-color: $_gdm_entry_bg;
|
||||||
|
color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-dialog-button-box { spacing: 3px; }
|
||||||
|
.modal-dialog-button {
|
||||||
|
padding: 4px 18px;
|
||||||
|
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
||||||
|
background-color: $_gdm_bg;
|
||||||
|
border-color: $_gdm_bg;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
$_hover_c: lighten($_gdm_bg, 5%);
|
||||||
|
&:hover, &:focus {
|
||||||
|
background-color: $_hover_c;
|
||||||
|
border-color: $_hover_c;
|
||||||
|
}
|
||||||
|
&:active {
|
||||||
|
$_active_c: darken($_gdm_bg, 5%);
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: $_active_c;
|
||||||
|
border-color: $_active_c;
|
||||||
|
}
|
||||||
|
&:insensitive {
|
||||||
|
@include button(insensitive);
|
||||||
|
border-color: darken($_gdm_bg, 5%);
|
||||||
|
background-color: darken($_gdm_bg, 5%);
|
||||||
|
color: transparentize($fg_color, 0.3);
|
||||||
|
}
|
||||||
|
&:default {
|
||||||
|
@include button(normal, $c:$selected_bg_color, $tc:$selected_fg_color);
|
||||||
|
border-color: $selected_bg_color;
|
||||||
|
&:hover, &:focus {
|
||||||
|
@include button(hover,$c:$selected_bg_color, $tc:$selected_fg_color);
|
||||||
|
$_def_hover_c: lighten($selected_bg_color, 5%);
|
||||||
|
background-color: $_def_hover_c;
|
||||||
|
border-color: $_def_hover_c;
|
||||||
|
}
|
||||||
|
&:active {
|
||||||
|
@include button(active,$c:$selected_bg_color, $tc:$selected_fg_color);
|
||||||
|
$_def_active_c: darken($selected_bg_color, 5%);
|
||||||
|
background-color: $_def_active_c;
|
||||||
|
border-color: $_def_active_c;
|
||||||
|
}
|
||||||
|
&:insensitive {
|
||||||
|
@include button(insensitive);
|
||||||
|
border-color: darken($selected_bg_color, 10%);
|
||||||
|
background-color: darken($selected_bg_color, 10%);
|
||||||
|
color: transparentize($selected_fg_color, 0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cancel-button,
|
||||||
|
.switch-user-button,
|
||||||
|
.login-dialog-session-list-button {
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 99px;
|
||||||
|
width: $base_icon_size * 2;
|
||||||
|
height: $base_icon_size * 2;
|
||||||
|
border-color: transparentize($bg_color,0.7);
|
||||||
|
background-color: transparentize($bg_color,0.7);
|
||||||
|
|
||||||
|
StIcon { icon-size: $base_icon_size; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.caps-lock-warning-label,
|
||||||
|
.login-dialog-message-warning {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog-logo-bin { padding: 24px 0px; }
|
||||||
|
.login-dialog-banner { color: darken($osd_fg_color,10%); }
|
||||||
|
.login-dialog-button-box { width: 23em; spacing: 5px; }
|
||||||
|
.login-dialog-message { text-align: center; }
|
||||||
|
.login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; }
|
||||||
|
.login-dialog-user-selection-box { padding: 100px 0px; }
|
||||||
|
.login-dialog-not-listed-label {
|
||||||
|
padding-left: 2px;
|
||||||
|
.login-dialog-not-listed-button:focus &,
|
||||||
|
.login-dialog-not-listed-button:hover & {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog-not-listed-label {
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
font-weight: bold;
|
||||||
|
color: darken($osd_fg_color,30%);
|
||||||
|
padding-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog-user-list-view { -st-vfade-offset: 1em; }
|
||||||
|
.login-dialog-user-list {
|
||||||
|
spacing: 12px;
|
||||||
|
width: 23em;
|
||||||
|
&:expanded .login-dialog-user-list-item:selected { background-color: $selected_bg_color; color: $selected_fg_color; }
|
||||||
|
&:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid $selected_bg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog-user-list-item {
|
||||||
|
border-radius: $base_border_radius + 4px;
|
||||||
|
padding: 6px;
|
||||||
|
color: darken($osd_fg_color,30%);
|
||||||
|
&:ltr .user-widget { padding-right: 1em; }
|
||||||
|
&:rtl .user-widget { padding-left: 1em; }
|
||||||
|
.login-dialog-timed-login-indicator {
|
||||||
|
height: 2px;
|
||||||
|
margin-top: 6px;
|
||||||
|
background-color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
&:focus .login-dialog-timed-login-indicator { background-color: $selected_fg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-widget-label {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-widget.horizontal .user-widget-label {
|
||||||
|
@include fontsize($base_font_size + 2);
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: left;
|
||||||
|
padding-left: 15px;
|
||||||
|
|
||||||
|
&:ltr { padding-left: 14px; }
|
||||||
|
&:rtl { padding-right: 14px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-widget.vertical .user-widget-label {
|
||||||
|
@include fontsize($base_font_size + 5);
|
||||||
|
text-align: center;
|
||||||
|
font-weight: normal;
|
||||||
|
padding-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog-prompt-layout {
|
||||||
|
padding-top: 24px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
spacing: $base_spacing * 2;
|
||||||
|
width: 23em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog-prompt-entry {
|
||||||
|
height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-dialog-prompt-label {
|
||||||
|
color: darken($osd_fg_color, 20%);
|
||||||
|
@include fontsize($base_font_size + 1);
|
||||||
|
padding-top: 1em;
|
||||||
|
}
|
102
data/theme/gnome-shell-sass/widgets/_looking-glass.scss
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
/* Looking Glass */
|
||||||
|
|
||||||
|
// Dialog
|
||||||
|
#LookingGlassDialog {
|
||||||
|
background-color: $osd_bg_color;
|
||||||
|
spacing: $base_spacing;
|
||||||
|
padding: 4px;
|
||||||
|
border: 1px solid transparentize($osd_fg_color, 0.8);
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
color: $osd_fg_color;
|
||||||
|
|
||||||
|
& > #Toolbar {
|
||||||
|
border: none;
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
background-color: $osd_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.labels { spacing: $base_spacing; }
|
||||||
|
.notebook-tab {
|
||||||
|
-natural-hpadding: $base_padding * 2;
|
||||||
|
-minimum-hpadding: 6px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: darken($osd_fg_color, 15%);
|
||||||
|
transition-duration: 100ms;
|
||||||
|
padding-left: .3em;
|
||||||
|
padding-right: .3em;
|
||||||
|
border-bottom-width: 2px;
|
||||||
|
&:hover {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
&:selected {
|
||||||
|
border-bottom-width: 2px;
|
||||||
|
box-shadow: inset 0 -2px 0 0 lighten($selected_bg_color, 5%);
|
||||||
|
color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
StBoxLayout#EvalBox { padding: 4px; spacing: $base_spacing; }
|
||||||
|
StBoxLayout#ResultsArea { spacing: $base_spacing; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-dialog {
|
||||||
|
StEntry {
|
||||||
|
background-color: transparentize(lighten($osd_bg_color, 5%), 0.4);
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-color: transparentize($osd_fg_color, 0.8);
|
||||||
|
min-height: 22px;
|
||||||
|
selection-background-color: $selected_bg_color;
|
||||||
|
selected-color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
.shell-link {
|
||||||
|
color: $link_color;
|
||||||
|
&:hover { color: lighten($link_color, 10%); }
|
||||||
|
&:active { color: darken($link_color, 10%); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-completions-text {
|
||||||
|
font-size: .9em;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-obj-inspector-title {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-obj-inspector-button {
|
||||||
|
border: 1px solid $osd_borders_color;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
&:hover { border: 1px solid #ffffff; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Extensions
|
||||||
|
#lookingGlassExtensions { padding: 4px; }
|
||||||
|
|
||||||
|
.lg-extensions-list {
|
||||||
|
padding: 4px;
|
||||||
|
spacing: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-extension {
|
||||||
|
border: 1px solid lighten($osd_borders_color, 5%);
|
||||||
|
background-color: lighten($osd_bg_color, 5%);
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-extension-name {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lg-extension-meta {
|
||||||
|
spacing: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inspector
|
||||||
|
#LookingGlassPropertyInspector {
|
||||||
|
background: $osd_bg_color;
|
||||||
|
border: 1px solid $osd_borders_color;
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
padding: 6px;
|
||||||
|
}
|
134
data/theme/gnome-shell-sass/widgets/_message-list.scss
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
/* Message List */
|
||||||
|
// a.k.a. notifications in the menu
|
||||||
|
|
||||||
|
// main list
|
||||||
|
.message-list {
|
||||||
|
width: 31.5em;
|
||||||
|
padding: 0 $base_padding * 2;
|
||||||
|
|
||||||
|
.message-list-placeholder { spacing: 12px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-list-sections {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
margin: 0 $base_margin * 4; // to account for scrollbar
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-list-section,
|
||||||
|
.message-list-section-list {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
// do-not-disturb + clear button
|
||||||
|
.message-list-controls {
|
||||||
|
margin: ($base_margin * 2) ($base_margin * 4) 0;
|
||||||
|
// NOTE: remove the padding if notification_bubble could remove margin for drop shadow
|
||||||
|
padding: $base_margin;
|
||||||
|
spacing: $base_spacing * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// message bubbles
|
||||||
|
.message {
|
||||||
|
@include notification_bubble;
|
||||||
|
|
||||||
|
// icon container
|
||||||
|
.message-icon-bin {
|
||||||
|
padding: ($base_padding * 3) 0 ($base_padding * 3) ($base_padding * 2);
|
||||||
|
|
||||||
|
&:rtl {
|
||||||
|
padding: ($base_padding * 3) ($base_padding * 2) ($base_padding * 3) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// icon size and color
|
||||||
|
> StIcon {
|
||||||
|
icon-size: $base_icon_size*2; // 32px
|
||||||
|
-st-icon-style: symbolic;
|
||||||
|
}
|
||||||
|
|
||||||
|
// fallback
|
||||||
|
> .fallback-app-icon {
|
||||||
|
width: $base_icon_size;
|
||||||
|
height: $base_icon_size;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// content
|
||||||
|
.message-content {
|
||||||
|
padding: $base_padding + $base_margin * 2;
|
||||||
|
spacing: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// title
|
||||||
|
.message-title {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
// secondary container in title box
|
||||||
|
.message-secondary-bin {
|
||||||
|
padding: 0 $base_margin * 2;
|
||||||
|
|
||||||
|
// notification time stamp
|
||||||
|
> .event-time {
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
@include fontsize($base_font_size - 2);
|
||||||
|
text-align: right;
|
||||||
|
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
|
||||||
|
padding-bottom: 0.13em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// close button
|
||||||
|
.message-close-button {
|
||||||
|
color: lighten($fg_color, 15%);
|
||||||
|
&:hover { color: if($variant=='light', lighten($fg_color, 30%), darken($fg_color, 10%)); }
|
||||||
|
&:active { color: if($variant=='light', lighten($fg_color, 40%), darken($fg_color, 20%)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// body
|
||||||
|
.message-body {
|
||||||
|
color: darken($fg_color, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// URLs in messages
|
||||||
|
.url-highlighter {
|
||||||
|
link-color: $link_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Media Controls */
|
||||||
|
.message-media-control {
|
||||||
|
padding: $base_padding * 2 $base_padding * 4;
|
||||||
|
color: darken($fg_color, 15%);
|
||||||
|
|
||||||
|
// uses $hover_bg_color since the media controls are in a notification_bubble
|
||||||
|
&:hover {
|
||||||
|
background-color: lighten($hover_bg_color, 5%);
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: darken($hover_bg_color, 2%);
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive { color: darken($fg_color,40%); }
|
||||||
|
|
||||||
|
// fix border-radius for last button
|
||||||
|
&:last-child:ltr { border-radius: 0 $base_border_radius+2 $base_border_radius+2 0; }
|
||||||
|
&:last-child:rtl { border-radius: $base_border_radius+2 0 0 $base_border_radius+2; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// album-art
|
||||||
|
.media-message-cover-icon {
|
||||||
|
icon-size: $base_icon_size*2 !important; // 48px
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
|
||||||
|
// when there is no artwork
|
||||||
|
&.fallback {
|
||||||
|
color: darken($fg_color, 17%);
|
||||||
|
background-color: $bg_color;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: $base_border_radius;
|
||||||
|
icon-size: $base_icon_size * 2 !important;
|
||||||
|
}
|
||||||
|
}
|
55
data/theme/gnome-shell-sass/widgets/_misc.scss
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
// Rubberband for select-area screenshots
|
||||||
|
.select-area-rubberband {
|
||||||
|
background-color: transparentize($selected_bg_color,0.7);
|
||||||
|
border: 1px solid $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// User icon
|
||||||
|
.user-icon {
|
||||||
|
background-size: contain;
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-radius: 99px;
|
||||||
|
&:hover {
|
||||||
|
color: lighten($osd_fg_color,30%);
|
||||||
|
}
|
||||||
|
|
||||||
|
& StIcon {
|
||||||
|
background-color: transparentize($osd_fg_color,0.95);
|
||||||
|
border-radius: 99px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-widget.vertical .user-icon {
|
||||||
|
icon-size: $base_icon_size * 6; // 128px
|
||||||
|
|
||||||
|
& StIcon {
|
||||||
|
padding: $base_padding * 3 + 2px; // 20px
|
||||||
|
padding-top: $base_padding * 3; // 18 px
|
||||||
|
padding-bottom: $base_padding * 3 + 4px; // 22px
|
||||||
|
width: $base_icon_size * 5.5; height: $base_icon_size * 5.5; // 88px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-widget.horizontal .user-icon {
|
||||||
|
icon-size: $base_icon_size * 4; // 64px
|
||||||
|
|
||||||
|
& StIcon {
|
||||||
|
padding: $base_padding * 2 ; // 12px
|
||||||
|
width: $base_icon_size * 2.5; height: $base_icon_size * 2.5; // 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lightbox { background-color: black; }
|
||||||
|
.flashspot { background-color: white; }
|
||||||
|
|
||||||
|
|
||||||
|
// Hidden
|
||||||
|
.hidden { color: rgba(0,0,0,0);}
|
||||||
|
|
||||||
|
// Caps-lock warning
|
||||||
|
.caps-lock-warning-label {
|
||||||
|
text-align: center;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
color: $warning_color;
|
||||||
|
}
|
56
data/theme/gnome-shell-sass/widgets/_network-dialog.scss
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
/* Network Dialogs */
|
||||||
|
.nm-dialog {
|
||||||
|
max-height: 34em;
|
||||||
|
min-height: 31em;
|
||||||
|
min-width: 32em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nm-dialog-content {
|
||||||
|
spacing: 20px;
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nm-dialog-airplane-box { spacing: 12px; }
|
||||||
|
|
||||||
|
.nm-dialog-airplane-headline {
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nm-dialog-airplane-text { color: $fg_color; }
|
||||||
|
|
||||||
|
// header
|
||||||
|
.nm-dialog-header {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.nm-dialog-header-icon {
|
||||||
|
icon-size: $base_icon_size * 2;
|
||||||
|
}
|
||||||
|
.nm-dialog-header-hbox { spacing: 10px; }
|
||||||
|
|
||||||
|
// list of networks
|
||||||
|
.nm-dialog-scroll-view {
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
padding:0;
|
||||||
|
background-color: darken($bg_color, 3%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// list item
|
||||||
|
.nm-dialog-item {
|
||||||
|
@include fontsize($base_font_size);
|
||||||
|
border-bottom: 1px solid $borders_color;
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
spacing: 0px;
|
||||||
|
&:selected {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// icons in list
|
||||||
|
.nm-dialog-icon { icon-size: $base_icon_size; }
|
||||||
|
.nm-dialog-icons { spacing: $base_spacing * 2; }
|
||||||
|
|
||||||
|
// no networks
|
||||||
|
.no-networks-label { color: $insensitive_fg_color; }
|
||||||
|
.no-networks-box { spacing: $base_padding; }
|
57
data/theme/gnome-shell-sass/widgets/_notifications.scss
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
/* Notifications & Mesage Tray */
|
||||||
|
|
||||||
|
$notification_banner_height: 64px;
|
||||||
|
$notification_banner_width: 34em;
|
||||||
|
|
||||||
|
// Banner notifications
|
||||||
|
.notification-banner {
|
||||||
|
min-height: $notification_banner_height;
|
||||||
|
width: $notification_banner_width;
|
||||||
|
|
||||||
|
.notification-actions {
|
||||||
|
spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-button {
|
||||||
|
@extend %bubble_button;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// counter
|
||||||
|
.summary-source-counter {
|
||||||
|
font-size: $base_font_size - 1pt;
|
||||||
|
font-weight: bold;
|
||||||
|
height: 1.6em;
|
||||||
|
width: 1.6em;
|
||||||
|
-shell-counter-overlap-x: 3px;
|
||||||
|
-shell-counter-overlap-y: 3px;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
border: 2px solid $fg_color;
|
||||||
|
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
|
||||||
|
border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
// chat bubbles
|
||||||
|
.chat-body { spacing: 5px; }
|
||||||
|
.chat-response { margin: 5px; }
|
||||||
|
.chat-log-message { color: darken($fg_color,10%); }
|
||||||
|
.chat-new-group { padding-top: 1em; }
|
||||||
|
.chat-received {
|
||||||
|
padding-left: 4px;
|
||||||
|
&:rtl { padding-left: 0px; padding-right: 4px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-sent {
|
||||||
|
padding-left: 18pt;
|
||||||
|
color: lighten($fg_color, 15%);
|
||||||
|
&:rtl { padding-left: 0; padding-right: 18pt; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-meta-message {
|
||||||
|
padding-left: 4px;
|
||||||
|
@include fontsize($base_font_size - 2);
|
||||||
|
font-weight: bold;
|
||||||
|
color: lighten($fg_color,18%);
|
||||||
|
&:rtl { padding-left: 0; padding-right: 4px; }
|
||||||
|
}
|
45
data/theme/gnome-shell-sass/widgets/_osd.scss
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/* OSD */
|
||||||
|
|
||||||
|
$osd_levelbar_height:8px;
|
||||||
|
|
||||||
|
.osd-window {
|
||||||
|
@extend %osd_panel;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
spacing: $base_spacing * 2; // 12px
|
||||||
|
margin: $base_margin * 8; // 32px
|
||||||
|
min-width: 64px;
|
||||||
|
min-height: 64px;
|
||||||
|
|
||||||
|
StIcon {
|
||||||
|
icon-size:$base_icon_size * 6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.osd-monitor-label { font-size: 3em; }
|
||||||
|
|
||||||
|
.level {
|
||||||
|
height: $osd_levelbar_height;
|
||||||
|
-barlevel-height: $osd_levelbar_height;
|
||||||
|
-barlevel-background-color: transparentize($osd_fg_color, if($variant=='light', 0.7, 0.9));
|
||||||
|
-barlevel-active-background-color: $osd_fg_color;
|
||||||
|
-barlevel-overdrive-color: $destructive_color;
|
||||||
|
-barlevel-overdrive-separator-width: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pad OSD */
|
||||||
|
.pad-osd-window {
|
||||||
|
padding: 32px;
|
||||||
|
background-color: transparentize(#000, 0.2);
|
||||||
|
|
||||||
|
.pad-osd-title-box { spacing: 12px; }
|
||||||
|
.pad-osd-title-menu-box { spacing: 6px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.combo-box-label {
|
||||||
|
width: 15em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.resize-popup {
|
||||||
|
@extend %osd_panel;
|
||||||
|
}
|
10
data/theme/gnome-shell-sass/widgets/_overview.scss
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/* OVERVIEW */
|
||||||
|
|
||||||
|
#overview {
|
||||||
|
spacing: 24px;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overview-controls {
|
||||||
|
padding-bottom: 32px;
|
||||||
|
}
|
121
data/theme/gnome-shell-sass/widgets/_panel.scss
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
/* Top Bar */
|
||||||
|
// a.k.a. the panel
|
||||||
|
|
||||||
|
$panel_corner_radius: $base_border_radius+1;
|
||||||
|
$panel_bg_color: #000;
|
||||||
|
$panel_fg_color: #ccc;
|
||||||
|
$panel_height: 1.86em;
|
||||||
|
|
||||||
|
|
||||||
|
#panel {
|
||||||
|
background-color: $panel_bg_color;
|
||||||
|
font-weight: bold;
|
||||||
|
height: $panel_height;
|
||||||
|
font-feature-settings: "tnum";
|
||||||
|
|
||||||
|
// transparent panel on lock & login screens
|
||||||
|
&.unlock-screen,
|
||||||
|
&.login-screen {
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
|
.panel-corner {
|
||||||
|
-panel-corner-radius: 0;
|
||||||
|
-panel-corner-background-color: transparent;
|
||||||
|
-panel-corner-border-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// spacing between activities, app menu and such
|
||||||
|
#panelLeft, #panelCenter {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
// the rounded outset corners
|
||||||
|
.panel-corner {
|
||||||
|
-panel-corner-radius: $panel_corner_radius;
|
||||||
|
-panel-corner-background-color: $panel_bg_color;
|
||||||
|
-panel-corner-border-width: 2px;
|
||||||
|
-panel-corner-border-color: transparent;
|
||||||
|
|
||||||
|
&:active, &:overview, &:focus {
|
||||||
|
-panel-corner-border-color: lighten($selected_bg_color,5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// panel menus
|
||||||
|
.panel-button {
|
||||||
|
font-weight: bold;
|
||||||
|
color: $panel_fg_color;
|
||||||
|
-natural-hpadding: $base_padding * 2;
|
||||||
|
-minimum-hpadding: $base_padding;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: lighten($panel_fg_color, 20%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active, &:overview, &:focus, &:checked {
|
||||||
|
color: lighten($panel_fg_color, 20%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// status area icons
|
||||||
|
.system-status-icon {
|
||||||
|
icon-size: $base_icon_size;
|
||||||
|
padding: $base_padding - 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// app menu icon
|
||||||
|
.app-menu-icon {
|
||||||
|
margin-left: $base_margin;
|
||||||
|
margin-right: $base_margin;
|
||||||
|
-st-icon-style: symbolic;
|
||||||
|
// dimensions of the icon are hardcoded
|
||||||
|
}
|
||||||
|
|
||||||
|
// lock & login screen styles
|
||||||
|
.unlock-screen &,
|
||||||
|
.login-screen & {
|
||||||
|
color: lighten($fg_color, 10%);
|
||||||
|
&:focus, &:hover, &:active { color: lighten($fg_color, 10%); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-button {
|
||||||
|
&:active, &:overview, &:focus, &:checked {
|
||||||
|
// Trick due to St limitations. It needs a background to draw a box-shadow
|
||||||
|
background-color: rgba(0, 0, 0, 0.01);
|
||||||
|
box-shadow: inset 0 -2px 0 0 lighten($selected_bg_color,5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-button.clock-display {
|
||||||
|
// Move highlight from .panel-button to .clock
|
||||||
|
&:active, &:overview, &:focus, &:checked {
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
.clock {
|
||||||
|
background-color: rgba(0, 0, 0, 0.01);
|
||||||
|
box-shadow: inset 0 -2px 0 0 lighten($selected_bg_color,5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-status-indicators-box,
|
||||||
|
.panel-status-menu-box {
|
||||||
|
spacing: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// spacing between power icon and (optional) percentage label
|
||||||
|
.power-status.panel-status-indicators-box {
|
||||||
|
spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// indicator for active
|
||||||
|
.screencast-indicator,
|
||||||
|
.remote-access-indicator { color: $warning_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// App Menu
|
||||||
|
#appMenu {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
.label-shadow { color: transparent; }
|
||||||
|
}
|
129
data/theme/gnome-shell-sass/widgets/_popovers.scss
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
/* Popovers/Menus */
|
||||||
|
|
||||||
|
$popover_arrow_height: 12px;
|
||||||
|
|
||||||
|
//.the popover itself
|
||||||
|
.popup-menu-boxpointer {
|
||||||
|
-arrow-border-radius: $base_border_radius+4;
|
||||||
|
-arrow-background-color: $bg_color;
|
||||||
|
-arrow-border-width: 1px;
|
||||||
|
-arrow-border-color: $borders_color;
|
||||||
|
-arrow-base: $popover_arrow_height * 2;
|
||||||
|
-arrow-rise: $popover_arrow_height;
|
||||||
|
-arrow-box-shadow: 0 1px 3px rgba(0,0,0,0.5); // dreaming bugzilla #689995
|
||||||
|
}
|
||||||
|
|
||||||
|
// container of the popover menu
|
||||||
|
.popup-menu {
|
||||||
|
min-width: 15em;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
//.popup-status-menu-item { font-weight: normal; color: pink; } //dunno what that is
|
||||||
|
&.panel-menu {
|
||||||
|
-boxpointer-gap: $base_margin; // distance from the panel
|
||||||
|
margin-bottom: 1.75em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-menu-content {
|
||||||
|
padding: $base_padding * 2 + $base_margin 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// menu items
|
||||||
|
.popup-menu-item {
|
||||||
|
spacing: $base_padding;
|
||||||
|
padding: $base_padding;
|
||||||
|
|
||||||
|
&:ltr { padding-right:1.75em; padding-left: 0; }
|
||||||
|
&:rtl { padding-right: 0; padding-left:1.75em; }
|
||||||
|
|
||||||
|
&:checked {
|
||||||
|
background-color: lighten($bg_color, 2%);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
background-color: transparentize(white, if($variant=='light', 0.2, 0.9));
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive { color: transparentize($fg_color,0.5);}
|
||||||
|
}
|
||||||
|
|
||||||
|
// all icons and other graphical elements
|
||||||
|
.popup-inactive-menu-item {
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
&:insensitive { color: transparentize($fg_color,0.5); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// symbolic icons in popover
|
||||||
|
.popup-menu-arrow,
|
||||||
|
.popup-menu-icon { icon-size: $base_icon_size; }
|
||||||
|
|
||||||
|
// popover submenus
|
||||||
|
.popup-sub-menu {
|
||||||
|
background-color: darken($bg_color, 3%);
|
||||||
|
box-shadow: none;
|
||||||
|
border-top: 1px solid transparentize($borders_color, 0.2);
|
||||||
|
border-bottom: 1px solid transparentize($borders_color, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// container for radio and check boxes
|
||||||
|
.popup-menu-ornament {
|
||||||
|
text-align: right;
|
||||||
|
width: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
// separator
|
||||||
|
.popup-separator-menu-item {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.popup-separator-menu-item-separator {
|
||||||
|
//-margin-horizontal: 24px;
|
||||||
|
height: 1px; //not really the whole box
|
||||||
|
margin: 6px 64px;
|
||||||
|
background-color: lighten($borders_color, 2%);
|
||||||
|
.popup-sub-menu & { //submenu separators
|
||||||
|
margin: 0 64px 0 32px;
|
||||||
|
@if $variant == 'dark' {
|
||||||
|
background-color: lighten($bg_color,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// desktop background menu
|
||||||
|
.background-menu {
|
||||||
|
-boxpointer-gap: $base_margin;
|
||||||
|
-arrow-rise: 0px; // hide the beak on the menu
|
||||||
|
}
|
||||||
|
|
||||||
|
// system status menu
|
||||||
|
.aggregate-menu {
|
||||||
|
min-width: 21em;
|
||||||
|
|
||||||
|
// lock screen, shutdown, etc. buttons
|
||||||
|
.popup-menu-icon {
|
||||||
|
padding:0;
|
||||||
|
margin: 0 $base_margin;
|
||||||
|
-st-icon-style: symbolic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-sub-menu .popup-menu-item > :first-child {
|
||||||
|
// account for icons in submenus with padding
|
||||||
|
&:ltr {
|
||||||
|
padding-left: $base_padding + $base_margin * 2;
|
||||||
|
margin-left: $base_icon_size;
|
||||||
|
}
|
||||||
|
&:rtl {
|
||||||
|
padding-right: $base_padding + $base_margin * 2; ;
|
||||||
|
margin-right: $base_icon_size;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
78
data/theme/gnome-shell-sass/widgets/_screen-shield.scss
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
/* Screen Shield */
|
||||||
|
|
||||||
|
.unlock-dialog-clock {
|
||||||
|
color: white;
|
||||||
|
font-weight: 300;
|
||||||
|
text-align: center;
|
||||||
|
spacing: 24px;
|
||||||
|
padding-bottom: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-clock-time {
|
||||||
|
font-size: 64pt;
|
||||||
|
padding-top: 42px;
|
||||||
|
font-feature-settings: "tnum";
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-clock-date {
|
||||||
|
font-size: 16pt;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-clock-hint {
|
||||||
|
font-weight: normal;
|
||||||
|
padding-top: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-notifications-container {
|
||||||
|
margin: 12px 0;
|
||||||
|
spacing: 6px;
|
||||||
|
width: 23em;
|
||||||
|
background-color: transparent;
|
||||||
|
.summary-notification-stack-scrollview {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification,
|
||||||
|
.unlock-dialog-notification-source {
|
||||||
|
padding: 12px 6px;
|
||||||
|
border: none;
|
||||||
|
background-color: transparentize($osd_bg_color,0.7);
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-radius: $modal_radius;
|
||||||
|
|
||||||
|
&.critical { background-color: transparentize($osd_bg_color,0.1) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-notification-label {
|
||||||
|
padding: 0px 0px 0px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-notification-count-text {
|
||||||
|
weight: bold;
|
||||||
|
padding: 0 6px;
|
||||||
|
color: $osd_bg_color;
|
||||||
|
background-color: transparentize($osd_fg_color, 0.7);
|
||||||
|
border-radius: 99px;
|
||||||
|
margin-right: 12px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.screen-shield-background { //just the shadow, really
|
||||||
|
background: black;
|
||||||
|
box-shadow: 0px 2px 4px rgba(0,0,0,0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
#lockDialogGroup {
|
||||||
|
background-color: lighten(#2e3436, 8%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#unlockDialogNotifications {
|
||||||
|
StButton#vhandle, StButton#hhandle {
|
||||||
|
background-color: transparentize($bg_color,0.7);
|
||||||
|
&:hover, &:focus { background-color: transparentize($bg_color,0.5); }
|
||||||
|
&:active { background-color: transparentize($selected_bg_color,0.5); }
|
||||||
|
}
|
||||||
|
}
|
29
data/theme/gnome-shell-sass/widgets/_scrollbars.scss
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/* Scrollbars */
|
||||||
|
|
||||||
|
StScrollView {
|
||||||
|
&.vfade { -st-vfade-offset: 68px; }
|
||||||
|
&.hfade { -st-hfade-offset: 68px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
StScrollBar {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
StScrollView & {
|
||||||
|
min-width: 14px;
|
||||||
|
min-height: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
StBin#trough {
|
||||||
|
border-radius: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
StButton#vhandle, StButton#hhandle {
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: mix($fg_color, $bg_color, 60%);
|
||||||
|
//border: 3px solid transparent; //would be nice to margin or at least to transparent
|
||||||
|
margin: 3px;
|
||||||
|
&:hover { background-color: mix($fg_color, $bg_color, 80%); }
|
||||||
|
&:active { background-color: $selected_bg_color; }
|
||||||
|
}
|
||||||
|
}
|
35
data/theme/gnome-shell-sass/widgets/_search-entry.scss
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
// Search entry
|
||||||
|
|
||||||
|
$search_entry_width: 320px;
|
||||||
|
$search_entry_height: 36px;
|
||||||
|
|
||||||
|
%search_entry,
|
||||||
|
.search-entry {
|
||||||
|
width: $search_entry_width;
|
||||||
|
padding: $base_padding+1 $base_padding+3;
|
||||||
|
border-radius: $search_entry_height * 0.5; // half the height
|
||||||
|
color: transparentize($fg_color,0.3);
|
||||||
|
background-color: $bg_color;
|
||||||
|
border-color: $borders_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $hover_bg_color;
|
||||||
|
border-color: $hover_borders_color;
|
||||||
|
color: $hover_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
padding: $base_padding $base_padding+2; // 1px less to account for wider border
|
||||||
|
border-width: 2px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: $selected_bg_color;
|
||||||
|
color: $fg_color;
|
||||||
|
box-shadow: inset 0 1px 2px 1px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-entry-icon {
|
||||||
|
icon-size: $base_icon_size;
|
||||||
|
padding: 0 4px;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
104
data/theme/gnome-shell-sass/widgets/_search-results.scss
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
/* Search */
|
||||||
|
|
||||||
|
// search overview container
|
||||||
|
#searchResultsContent {
|
||||||
|
max-width: 1024px;
|
||||||
|
spacing: $base_margin * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// search results sections "the boxes"
|
||||||
|
.search-section {
|
||||||
|
// This should be equal to #searchResultsContent spacing
|
||||||
|
spacing: $base_margin * 2;
|
||||||
|
|
||||||
|
// separator
|
||||||
|
.search-section-separator {
|
||||||
|
// height: 1px;
|
||||||
|
// background-color: $osd_outer_borders_color;
|
||||||
|
height: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// content
|
||||||
|
.search-section-content {
|
||||||
|
background-color: transparentize(lighten($osd_bg_color, 5%), 0.2);
|
||||||
|
border-radius: $modal_radius+3;
|
||||||
|
border: 1px solid $osd_outer_borders_color;
|
||||||
|
box-shadow: 0 2px 4px 0 $shadow_color;
|
||||||
|
text-shadow: 0 1px if($variant == 'light', rgba(255,255,255,0.2), rgba(0,0,0,0.2));
|
||||||
|
color: $osd_fg_color;
|
||||||
|
padding: $base_padding * 3;
|
||||||
|
// This is the space between the provider icon and the results container
|
||||||
|
spacing: $base_margin * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
%search-section-content-item {
|
||||||
|
@extend %icon_tile;
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:hover,
|
||||||
|
&:selected {
|
||||||
|
background-color: transparentize($osd_fg_color, .9);
|
||||||
|
transition-duration: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
background-color: transparentize(darken($osd_bg_color, 10%), .1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// "no results" text
|
||||||
|
.search-statustext {
|
||||||
|
@extend %status_text;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Search results with icons
|
||||||
|
.grid-search-result {
|
||||||
|
@extend %app-well-app;
|
||||||
|
}
|
||||||
|
|
||||||
|
// search result provider
|
||||||
|
.search-provider-icon {
|
||||||
|
@extend %search-section-content-item;
|
||||||
|
|
||||||
|
// content
|
||||||
|
.list-search-provider-content {
|
||||||
|
spacing: $base_spacing * 2;
|
||||||
|
|
||||||
|
// provider labels
|
||||||
|
.list-search-provider-details {
|
||||||
|
width: 120px;
|
||||||
|
margin-top: 0;
|
||||||
|
color: darken($osd_fg_color, 8%);
|
||||||
|
// font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// search results list
|
||||||
|
.list-search-results {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
// search result listitem
|
||||||
|
.list-search-result {
|
||||||
|
@extend %search-section-content-item;
|
||||||
|
|
||||||
|
// content
|
||||||
|
.list-search-result-content {
|
||||||
|
spacing: $base_padding;
|
||||||
|
}
|
||||||
|
|
||||||
|
// list item title (with leading icon)
|
||||||
|
.list-search-result-title {
|
||||||
|
spacing: $base_spacing * 2;
|
||||||
|
// font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
// list item description
|
||||||
|
.list-search-result-description {
|
||||||
|
color: darken($osd_fg_color, 30%);
|
||||||
|
}
|
||||||
|
}
|
27
data/theme/gnome-shell-sass/widgets/_slider.scss
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/* Slider */
|
||||||
|
|
||||||
|
$slider_size: 15px;
|
||||||
|
|
||||||
|
.slider {
|
||||||
|
height: $slider_size;
|
||||||
|
// slider trough
|
||||||
|
-barlevel-height: 3px; // has to be an odd number
|
||||||
|
-barlevel-background-color: $borders_color; //background of the trough
|
||||||
|
-barlevel-border-width: 1px;
|
||||||
|
-barlevel-border-color: $borders_color; // trough border color
|
||||||
|
// fill style
|
||||||
|
-barlevel-active-background-color: $selected_bg_color; //active trough fill
|
||||||
|
-barlevel-active-border-color: if($variant == 'light', darken($selected_bg_color, 4%), lighten($selected_bg_color, 2%)); //active trough border
|
||||||
|
// overfill style (red in this case)
|
||||||
|
-barlevel-overdrive-color: $destructive_color;
|
||||||
|
-barlevel-overdrive-border-color: if($variant == 'light', darken($destructive_color, 4%), lighten($destructive_color, 2%)); //trough border when red;
|
||||||
|
-barlevel-overdrive-separator-width:1px;
|
||||||
|
// slider hander
|
||||||
|
-slider-handle-radius: $slider_size * 0.5; // half the size of the size
|
||||||
|
-slider-handle-border-width: 1px;
|
||||||
|
-slider-handle-border-color: if($variant == 'light', $borders_color, $fg_color);
|
||||||
|
|
||||||
|
color: if($variant == 'light', lighten($bg_color, 10%), $fg_color);
|
||||||
|
&:hover { color: $hover_bg_color; }
|
||||||
|
&:active { color: $active_bg_color; }
|
||||||
|
}
|
67
data/theme/gnome-shell-sass/widgets/_switcher-popup.scss
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
/* App Switcher */
|
||||||
|
|
||||||
|
.switcher-popup {
|
||||||
|
padding: 8px;
|
||||||
|
spacing: $base_spacing * 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
// switcher onscreen panel
|
||||||
|
.switcher-list {
|
||||||
|
@extend %osd_panel;
|
||||||
|
|
||||||
|
.item-box {
|
||||||
|
padding: 8px;
|
||||||
|
border-radius: $base_border_radius + 1px;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
|
||||||
|
&:outlined {
|
||||||
|
border: 1px solid darken($borders_color,5%);
|
||||||
|
background-color: transparentize($osd_fg_color, 0.9);
|
||||||
|
box-shadow: inset 0 2px 2px 0 rgba(0,0,0,0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
background-color: transparentize($osd_fg_color, 0.9);
|
||||||
|
color: $osd_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// window thumbnails
|
||||||
|
.thumbnail-box {
|
||||||
|
padding: 2px;
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumbnail {
|
||||||
|
width: 256px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
width: 1px;
|
||||||
|
background: $borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switcher-list-item-container {
|
||||||
|
spacing: $base_spacing * 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.switcher-arrow {
|
||||||
|
border-color: rgba(0,0,0,0);
|
||||||
|
color: transparentize($fg_color,0.2);
|
||||||
|
&:highlighted {
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Input Source Switcher
|
||||||
|
.input-source-switcher-symbol {
|
||||||
|
font-size: 34pt;
|
||||||
|
width: 96px;
|
||||||
|
height: 96px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Window cycler highlight
|
||||||
|
.cycler-highlight {
|
||||||
|
border: 5px solid $selected_bg_color;
|
||||||
|
}
|
16
data/theme/gnome-shell-sass/widgets/_switches.scss
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/* Switches */
|
||||||
|
|
||||||
|
// these are equal to the size of the SVG assets
|
||||||
|
$switch_height: 22px;
|
||||||
|
$switch_width: 46px;
|
||||||
|
|
||||||
|
.toggle-switch {
|
||||||
|
color: $fg_color;
|
||||||
|
height: $switch_height;
|
||||||
|
width: $switch_width;
|
||||||
|
background-size: contain;
|
||||||
|
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-off.svg"),url("resource:///org/gnome/shell/theme/toggle-off-dark.svg"));
|
||||||
|
&:checked {
|
||||||
|
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-on.svg"),url("resource:///org/gnome/shell/theme/toggle-on-dark.svg"));
|
||||||
|
}
|
||||||
|
}
|
19
data/theme/gnome-shell-sass/widgets/_tiled-previews.scss
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
/* Tiled window previews */
|
||||||
|
$tile_corner_radius: $base_border_radius + 1px;
|
||||||
|
.tile-preview {
|
||||||
|
background-color: transparentize($selected_bg_color,0.5);
|
||||||
|
border: 1px solid $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tile-preview-left.on-primary {
|
||||||
|
border-radius: $tile_corner_radius 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tile-preview-right.on-primary {
|
||||||
|
border-radius: 0 $tile_corner_radius 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tile-preview-left.tile-preview-right.on-primary {
|
||||||
|
border-radius: $tile_corner_radius $tile_corner_radius 0 0;
|
||||||
|
}
|
66
data/theme/gnome-shell-sass/widgets/_window-picker.scss
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
/* Window Picker */
|
||||||
|
|
||||||
|
$window_picker_spacing: $base_spacing * 2; // 16px
|
||||||
|
$window_picker_padding: $base_padding * 2; // 16px
|
||||||
|
|
||||||
|
$window_thumbnail_border_color:transparentize($selected_fg_color, 0.65);
|
||||||
|
|
||||||
|
$window_close_button_size: 24px;
|
||||||
|
$window_close_button_padding: 3px;
|
||||||
|
|
||||||
|
|
||||||
|
// Window picker
|
||||||
|
.window-picker {
|
||||||
|
// Space between window thumbnails
|
||||||
|
-horizontal-spacing: $window_picker_spacing;
|
||||||
|
-vertical-spacing: $window_picker_spacing;
|
||||||
|
// Padding for container around window thumbnails
|
||||||
|
padding: $window_picker_padding;
|
||||||
|
|
||||||
|
&.external-monitor { padding: $window_picker_padding; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Borders on window thumbnails
|
||||||
|
.window-clone-border {
|
||||||
|
border-width: 6px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: $window_thumbnail_border_color;
|
||||||
|
border-radius: $base_border_radius + 2;
|
||||||
|
// For window decorations with round corners we can't match
|
||||||
|
// the exact shape when the window is scaled. So apply a shadow
|
||||||
|
// to fix that case
|
||||||
|
box-shadow: inset 0 0 0 1px transparentize($borders_color, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Window titles
|
||||||
|
.window-caption {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
background-color: $osd_bg_color;
|
||||||
|
border:1px solid $osd_outer_borders_color;
|
||||||
|
border-radius: $base_border_radius + 1;
|
||||||
|
padding: $base_padding $base_padding * 2;
|
||||||
|
font-weight: bold;
|
||||||
|
@include fontsize($base_font_size + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Close button
|
||||||
|
.window-close {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
border: none;
|
||||||
|
border-radius: $window_close_button_size * 0.5 + $window_close_button_padding * 2;
|
||||||
|
padding: $window_close_button_padding;
|
||||||
|
height: $window_close_button_size;
|
||||||
|
width: $window_close_button_size;
|
||||||
|
box-shadow: -1px 1px 5px 0px rgba(0,0,0,0.5);
|
||||||
|
|
||||||
|
-shell-close-overlap: $window_close_button_size * 0.5;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: lighten($selected_bg_color, 5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: darken($selected_bg_color, 5%);
|
||||||
|
}
|
||||||
|
}
|
36
data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/* Workspace Switcher */
|
||||||
|
.workspace-switcher-group {
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace-switcher-container {
|
||||||
|
@extend %osd_panel;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace-switcher {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
padding: 0;
|
||||||
|
spacing: $base_spacing * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ws-switcher-box {
|
||||||
|
background: transparent;
|
||||||
|
height: 50px;
|
||||||
|
background-size: 32px;
|
||||||
|
border: 1px solid transparentize($osd_fg_color,0.9);
|
||||||
|
border-radius: $base_border_radius + 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// active workspace in the switcher
|
||||||
|
.ws-switcher-active-up,
|
||||||
|
.ws-switcher-active-down,
|
||||||
|
.ws-switcher-active-left,
|
||||||
|
.ws-switcher-active-right {
|
||||||
|
height: 52px;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
border: 1px solid if($variant=='light', darken($selected_bg_color, 8%), lighten($selected_bg_color, 5%));
|
||||||
|
border-radius: $base_border_radius + 3px;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
/* Workspace pager */
|
||||||
|
|
||||||
|
// thumbnails in overview
|
||||||
|
.workspace-thumbnails {
|
||||||
|
@extend %overview_panel;
|
||||||
|
visible-width: 32px; //amount visible before hover
|
||||||
|
spacing: $base_spacing;
|
||||||
|
padding: $base_padding;
|
||||||
|
|
||||||
|
border-radius: $modal_radius 0 0 $modal_radius;
|
||||||
|
border-right-width: 0;
|
||||||
|
|
||||||
|
&:rtl {
|
||||||
|
border-radius: 0 $modal_radius $modal_radius 0;
|
||||||
|
border-left-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// drag and drop indicator
|
||||||
|
.placeholder {
|
||||||
|
background-image: url("resource:///org/gnome/shell/theme/dash-placeholder.svg");
|
||||||
|
background-size: contain;
|
||||||
|
height: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// selected indicator
|
||||||
|
.workspace-thumbnail-indicator {
|
||||||
|
border: 3px solid $selected_bg_color;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 0px;
|
||||||
|
// background-color: transparentize($selected_bg_color, 0.9);
|
||||||
|
}
|
@ -3,3 +3,4 @@ $variant: 'dark';
|
|||||||
@import "gnome-shell-sass/_colors"; //use gtk colors
|
@import "gnome-shell-sass/_colors"; //use gtk colors
|
||||||
@import "gnome-shell-sass/_drawing";
|
@import "gnome-shell-sass/_drawing";
|
||||||
@import "gnome-shell-sass/_common";
|
@import "gnome-shell-sass/_common";
|
||||||
|
@import "gnome-shell-sass/_widgets";
|
||||||
|
@ -1,109 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="32"
|
|
||||||
viewBox="0 0 32 32"
|
|
||||||
version="1.1"
|
|
||||||
id="svg7384"
|
|
||||||
height="32"
|
|
||||||
sodipodi:docname="key-enter.svg"
|
|
||||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1744"
|
|
||||||
inkscape:window-height="866"
|
|
||||||
id="namedview19"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="14.75"
|
|
||||||
inkscape:cx="7.9322034"
|
|
||||||
inkscape:cy="14.554666"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="55"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
inkscape:current-layer="svg7384" />
|
|
||||||
<metadata
|
|
||||||
id="metadata90">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title>Gnome Symbolic Icon Theme</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<title
|
|
||||||
id="title9167">Gnome Symbolic Icon Theme</title>
|
|
||||||
<defs
|
|
||||||
id="defs7386">
|
|
||||||
<linearGradient
|
|
||||||
osb:paint="solid"
|
|
||||||
id="linearGradient19282"
|
|
||||||
gradientTransform="matrix(-2.7365795,0.28202934,-0.18908311,-0.99988321,239.54008,-879.45557)">
|
|
||||||
<stop
|
|
||||||
style="stop-color:#666666;stop-opacity:1;"
|
|
||||||
offset="0"
|
|
||||||
id="stop19284" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer9" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer10" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer11" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer13" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer14" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer15" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g71291" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g4953" />
|
|
||||||
<g
|
|
||||||
transform="matrix(2,0,0,2,-281.56285,-1615.0002)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer12">
|
|
||||||
<path
|
|
||||||
id="path16589"
|
|
||||||
d="m 148.00015,821.0002 h -1 c -0.26528,0 -0.53057,-0.093 -0.71875,-0.2812 l -3.71875,-3.7188 c 0,0 2.47917,-2.4792 3.71875,-3.7187 0.18817,-0.1882 0.45344,-0.2813 0.71875,-0.2813 h 1 v 1 c 0,0.2653 -0.0931,0.5306 -0.28125,0.7188 l -2.28125,2.2812 2.28125,2.2813 c 0.18811,0.1881 0.28129,0.4534 0.28125,0.7187 z"
|
|
||||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:'Bitstream Vera Sans';-inkscape-font-specification:'Bitstream Vera Sans';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;enable-background:accumulate"
|
|
||||||
inkscape:connector-curvature="0" />
|
|
||||||
<path
|
|
||||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:#bebebe;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
|
|
||||||
d="m 154.0002,810 v 4.5 c 0,1.3807 -1.11929,2.5 -2.5,2.5 h -6.50005"
|
|
||||||
id="path16591"
|
|
||||||
inkscape:connector-curvature="0" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.1 KiB |
@ -1,114 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="32"
|
|
||||||
viewBox="0 0 32 32"
|
|
||||||
version="1.1"
|
|
||||||
id="svg7384"
|
|
||||||
height="32"
|
|
||||||
sodipodi:docname="key-hide.svg"
|
|
||||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1919"
|
|
||||||
inkscape:window-height="1011"
|
|
||||||
id="namedview19"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="14.75"
|
|
||||||
inkscape:cx="-12.338983"
|
|
||||||
inkscape:cy="14.554666"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="55"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
inkscape:current-layer="svg7384" />
|
|
||||||
<metadata
|
|
||||||
id="metadata90">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title>Gnome Symbolic Icon Theme</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<title
|
|
||||||
id="title9167">Gnome Symbolic Icon Theme</title>
|
|
||||||
<defs
|
|
||||||
id="defs7386">
|
|
||||||
<linearGradient
|
|
||||||
osb:paint="solid"
|
|
||||||
id="linearGradient19282"
|
|
||||||
gradientTransform="matrix(-2.7365795,0.28202934,-0.18908311,-0.99988321,239.54008,-879.45557)">
|
|
||||||
<stop
|
|
||||||
style="stop-color:#666666;stop-opacity:1;"
|
|
||||||
offset="0"
|
|
||||||
id="stop19284" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer9" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer10" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer11" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer13" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer14" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer15" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g71291" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g4953" />
|
|
||||||
<g
|
|
||||||
style="display:inline"
|
|
||||||
inkscape:label="go-down"
|
|
||||||
id="g11722"
|
|
||||||
transform="matrix(2,0,0,2,-362.0004,-1494)">
|
|
||||||
<rect
|
|
||||||
transform="rotate(90)"
|
|
||||||
style="color:#bebebe;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:1;marker:none;enable-background:new"
|
|
||||||
id="rect11718"
|
|
||||||
y="-197.0002"
|
|
||||||
x="747"
|
|
||||||
height="16"
|
|
||||||
width="16" />
|
|
||||||
<path
|
|
||||||
style="display:inline;fill:#e5e5e5;fill-opacity:1;stroke:none"
|
|
||||||
d="m 189.0002,759.4375 -5.71875,-5.7187 C 183.08558,753.5229 183.0002,753.2556 183.0002,753 v -1 h 1 c 0.25562,0 0.52288,0.085 0.71875,0.2813 l 4.28125,4.2812 4.28125,-4.2812 C 193.47732,752.0854 193.74458,752 194.0002,752 h 1 v 1 c 0,0.2556 -0.0854,0.5229 -0.28125,0.7188 z"
|
|
||||||
id="path11720"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
sodipodi:nodetypes="ccscsccsscscc" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 3.5 KiB |
@ -1,129 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="32"
|
|
||||||
viewBox="0 0 32 32"
|
|
||||||
version="1.1"
|
|
||||||
id="svg7384"
|
|
||||||
height="32"
|
|
||||||
sodipodi:docname="key-layout.svg"
|
|
||||||
inkscape:version="0.92.3 (2405546, 2018-03-11)">
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="3440"
|
|
||||||
inkscape:window-height="1376"
|
|
||||||
id="namedview19"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="1"
|
|
||||||
inkscape:cx="46.246852"
|
|
||||||
inkscape:cy="17.474578"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="27"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="svg7384">
|
|
||||||
<inkscape:grid
|
|
||||||
type="xygrid"
|
|
||||||
id="grid861" />
|
|
||||||
</sodipodi:namedview>
|
|
||||||
<metadata
|
|
||||||
id="metadata90">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title>Gnome Symbolic Icon Theme</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<title
|
|
||||||
id="title9167">Gnome Symbolic Icon Theme</title>
|
|
||||||
<defs
|
|
||||||
id="defs7386">
|
|
||||||
<linearGradient
|
|
||||||
osb:paint="solid"
|
|
||||||
id="linearGradient19282"
|
|
||||||
gradientTransform="matrix(-2.7365795,0.28202934,-0.18908311,-0.99988321,239.54008,-879.45557)">
|
|
||||||
<stop
|
|
||||||
style="stop-color:#666666;stop-opacity:1;"
|
|
||||||
offset="0"
|
|
||||||
id="stop19284" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer9" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer10" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer11" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer13" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer14" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer15" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g71291" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g4953" />
|
|
||||||
<g
|
|
||||||
style="stroke-width:0.5;enable-background:new"
|
|
||||||
id="g3561"
|
|
||||||
inkscape:label="preferences-desktop-locale"
|
|
||||||
transform="matrix(2,0,0,2,135.99464,-895.9793)">
|
|
||||||
<path
|
|
||||||
sodipodi:nodetypes="cc"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
id="path3535"
|
|
||||||
d="m -65,450 v 12"
|
|
||||||
style="fill:#e5e5e5;fill-opacity:1;fill-rule:evenodd;stroke:#e5e5e5;stroke-width:1;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
||||||
<path
|
|
||||||
sodipodi:nodetypes="ccccccccc"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
id="path3537"
|
|
||||||
d="m -65,456 h 4 l 1,2 h 5 v -6 h -4 l -1,-2 h -5 z"
|
|
||||||
style="fill:none;fill-rule:evenodd;stroke:#e5e5e5;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
||||||
<path
|
|
||||||
style="opacity:1;vector-effect:none;fill:#e5e5e5;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
|
||||||
d="m -65,456 h 4 l 1,2 h 5 v -6 h -4 l -1,-2 h -5 z"
|
|
||||||
id="path3539"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
sodipodi:nodetypes="ccccccccc" />
|
|
||||||
<rect
|
|
||||||
style="color:#bebebe;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:0.89050001;marker:none;enable-background:new"
|
|
||||||
id="rect3543"
|
|
||||||
y="448"
|
|
||||||
x="-68"
|
|
||||||
height="16"
|
|
||||||
width="16" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.2 KiB |
@ -1,109 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="32"
|
|
||||||
viewBox="0 0 32 32"
|
|
||||||
version="1.1"
|
|
||||||
id="svg7384"
|
|
||||||
height="32"
|
|
||||||
sodipodi:docname="key-shift-latched-uppercase.svg"
|
|
||||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1791"
|
|
||||||
inkscape:window-height="984"
|
|
||||||
id="namedview19"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="14.75"
|
|
||||||
inkscape:cx="-0.77966097"
|
|
||||||
inkscape:cy="18.847458"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="55"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
inkscape:current-layer="svg7384" />
|
|
||||||
<metadata
|
|
||||||
id="metadata90">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title>Gnome Symbolic Icon Theme</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<title
|
|
||||||
id="title9167">Gnome Symbolic Icon Theme</title>
|
|
||||||
<defs
|
|
||||||
id="defs7386">
|
|
||||||
<linearGradient
|
|
||||||
osb:paint="solid"
|
|
||||||
id="linearGradient19282"
|
|
||||||
gradientTransform="matrix(-2.7365795,0.28202934,-0.18908311,-0.99988321,239.54008,-879.45557)">
|
|
||||||
<stop
|
|
||||||
style="stop-color:#666666;stop-opacity:1;"
|
|
||||||
offset="0"
|
|
||||||
id="stop19284" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer9" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer10" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer11" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer13" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer14" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer15" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g71291" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g4953" />
|
|
||||||
<g
|
|
||||||
transform="matrix(2,0,0,2,-282.0004,-1614.2187)"
|
|
||||||
style="display:inline;fill:#006098;fill-opacity:1"
|
|
||||||
id="layer12">
|
|
||||||
<path
|
|
||||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#006098;fill-opacity:1;stroke:none;stroke-width:2;marker:none;enable-background:new"
|
|
||||||
d="m 147,818 v -4 h -3.1248 l 5.125,-5.7813 5.125,5.7813 h -3.1875 v 4 z"
|
|
||||||
id="path16532"
|
|
||||||
inkscape:connector-curvature="0" />
|
|
||||||
<path
|
|
||||||
id="path16534"
|
|
||||||
d="m 147,822 v -2 h 3.9377 v 2 z"
|
|
||||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#006098;fill-opacity:1;stroke:none;stroke-width:2;marker:none;enable-background:new"
|
|
||||||
inkscape:connector-curvature="0" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 3.4 KiB |
@ -1,104 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="32"
|
|
||||||
viewBox="0 0 32 32"
|
|
||||||
version="1.1"
|
|
||||||
id="svg7384"
|
|
||||||
height="32"
|
|
||||||
sodipodi:docname="key-shift-uppercase.svg"
|
|
||||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="2160"
|
|
||||||
inkscape:window-height="1311"
|
|
||||||
id="namedview18"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="14.75"
|
|
||||||
inkscape:cx="-27.898305"
|
|
||||||
inkscape:cy="8"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="55"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="svg7384" />
|
|
||||||
<metadata
|
|
||||||
id="metadata90">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title>Gnome Symbolic Icon Theme</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<title
|
|
||||||
id="title9167">Gnome Symbolic Icon Theme</title>
|
|
||||||
<defs
|
|
||||||
id="defs7386">
|
|
||||||
<linearGradient
|
|
||||||
osb:paint="solid"
|
|
||||||
id="linearGradient19282"
|
|
||||||
gradientTransform="matrix(-2.7365795,0.28202934,-0.18908311,-0.99988321,239.54008,-879.45557)">
|
|
||||||
<stop
|
|
||||||
style="stop-color:#666666;stop-opacity:1;"
|
|
||||||
offset="0"
|
|
||||||
id="stop19284" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer9" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer10" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer11" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer13" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
id="layer14" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer15" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g71291" />
|
|
||||||
<g
|
|
||||||
transform="translate(-141.0002,-791)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g4953" />
|
|
||||||
<g
|
|
||||||
transform="matrix(2,0,0,2,-282.0008,-1614.2187)"
|
|
||||||
style="display:inline;fill:#006098;fill-opacity:1"
|
|
||||||
id="layer12">
|
|
||||||
<path
|
|
||||||
id="path16548"
|
|
||||||
d="m 147.0002,820 v -4 h -3.1248 l 5.125,-5.7813 5.125,5.7813 h -3.1875 v 4 z"
|
|
||||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#006098;fill-opacity:1;stroke:none;stroke-width:2;marker:none;enable-background:new"
|
|
||||||
inkscape:connector-curvature="0" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 3.1 KiB |
@ -1,108 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="32"
|
|
||||||
viewBox="0 0 32 32"
|
|
||||||
version="1.1"
|
|
||||||
id="svg7384"
|
|
||||||
height="32"
|
|
||||||
sodipodi:docname="key-shift.svg"
|
|
||||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1400"
|
|
||||||
inkscape:window-height="1034"
|
|
||||||
id="namedview4569"
|
|
||||||
showgrid="false"
|
|
||||||
fit-margin-top="0"
|
|
||||||
fit-margin-left="0"
|
|
||||||
fit-margin-right="0"
|
|
||||||
fit-margin-bottom="0"
|
|
||||||
inkscape:zoom="14.75"
|
|
||||||
inkscape:cx="1.5993763"
|
|
||||||
inkscape:cy="5"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="55"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
inkscape:current-layer="svg7384" />
|
|
||||||
<metadata
|
|
||||||
id="metadata90">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title>Gnome Symbolic Icon Theme</dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<title
|
|
||||||
id="title9167">Gnome Symbolic Icon Theme</title>
|
|
||||||
<defs
|
|
||||||
id="defs7386">
|
|
||||||
<linearGradient
|
|
||||||
osb:paint="solid"
|
|
||||||
id="linearGradient19282"
|
|
||||||
gradientTransform="matrix(-2.7365795,0.28202934,-0.18908311,-0.99988321,239.54008,-879.45557)">
|
|
||||||
<stop
|
|
||||||
style="stop-color:#666666;stop-opacity:1;"
|
|
||||||
offset="0"
|
|
||||||
id="stop19284" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer9" />
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer10" />
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
id="layer11" />
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer13" />
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
id="layer14" />
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer15" />
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g71291" />
|
|
||||||
<g
|
|
||||||
transform="translate(-143.8754,-788)"
|
|
||||||
style="display:inline"
|
|
||||||
id="g4953" />
|
|
||||||
<g
|
|
||||||
transform="matrix(2,0,0,2,-282.0008,-1614.2187)"
|
|
||||||
style="display:inline"
|
|
||||||
id="layer12">
|
|
||||||
<path
|
|
||||||
id="path16548"
|
|
||||||
d="m 147.0002,820 v -4 h -3.1248 l 5.125,-5.7813 5.125,5.7813 h -3.1875 v 4 z"
|
|
||||||
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;enable-background:new"
|
|
||||||
inkscape:connector-curvature="0" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 3.1 KiB |
6
data/theme/keyboard-caps-lock-filled-symbolic.svg
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
||||||
|
<g fill="#2e3436">
|
||||||
|
<path d="M6 8H2.937l5.126-5.781L13.186 8H10v2H6z" style="marker:none" color="#000" overflow="visible"/>
|
||||||
|
<path d="M6 11h4v2H6z" style="marker:none"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 268 B |
6
data/theme/keyboard-enter-symbolic.svg
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
||||||
|
<g font-weight="400" fill="#2e3436">
|
||||||
|
<path d="M11.994 3v4.004c.002.666-.183.72-.445.852-.262.13-.555.144-.555.144H4v2h6.994s.71.014 1.45-.355c.738-.37 1.552-1.313 1.55-2.645V3z" style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1;marker:none" color="#000" font-family="sans-serif" overflow="visible"/>
|
||||||
|
<path d="M6 12v-1c0-.257-.13-.528-.313-.719l-1.28-1.303 1.28-1.26C5.87 7.529 6 7.258 6 7V6H5c-.31 0-.552.09-.75.281L1.594 8.978l2.656 2.74c.198.192.44.282.75.282z" style="line-height:normal;-inkscape-font-specification:'Bitstream Vera Sans';text-indent:0;text-align:start;text-decoration-line:none;text-transform:none;marker:none" color="#bebebe" font-family="Bitstream Vera Sans" overflow="visible"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
7
data/theme/keyboard-hide-symbolic.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
||||||
|
<g color="#000" fill="#2e3436">
|
||||||
|
<path d="M4.707 5.293L3.293 6.707 8 11.414l4.707-4.707-1.414-1.414L8 8.586z" style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1;marker:none" font-weight="400" font-family="sans-serif" overflow="visible"/>
|
||||||
|
<path d="M12 6V5h1v1zM3 6V5h1v1z" style="marker:none" overflow="visible"/>
|
||||||
|
<path d="M3 6c0-.554.446-1 1-1s1 .446 1 1-.446 1-1 1-1-.446-1-1zM11 6c0-.554.446-1 1-1s1 .446 1 1-.446 1-1 1-1-.446-1-1z" style="marker:none" overflow="visible"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 990 B |
7
data/theme/keyboard-layout-filled-symbolic.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
||||||
|
<g fill="#2e3436" fill-rule="evenodd">
|
||||||
|
<path d="M2 1v14h2V1z" style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/>
|
||||||
|
<path d="M3 1a1 1 0 00-1 1v6a1 1 0 001 1h3.383l.722 1.447A1 1 0 008 11h5a1 1 0 001-1V4a1 1 0 00-1-1H9.617l-.722-1.447A1 1 0 008 1zm1 2h3.383l.722 1.447A1 1 0 009 5h3v4H8.617l-.722-1.447A1 1 0 007 7H4z" style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/>
|
||||||
|
<path d="M3 8h4l1 2h5V4H9L8 2H3z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
3
data/theme/keyboard-shift-filled-symbolic.svg
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
||||||
|
<path d="M6 13V9H2.937l5.126-5.781L13.186 9H10v4z" style="marker:none" color="#000" overflow="visible" fill="#2e3436"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 195 B |
@ -4,7 +4,42 @@ theme_sources = files([
|
|||||||
'gnome-shell-sass/_colors.scss',
|
'gnome-shell-sass/_colors.scss',
|
||||||
'gnome-shell-sass/_common.scss',
|
'gnome-shell-sass/_common.scss',
|
||||||
'gnome-shell-sass/_drawing.scss',
|
'gnome-shell-sass/_drawing.scss',
|
||||||
'gnome-shell-sass/_high-contrast-colors.scss'
|
'gnome-shell-sass/_high-contrast-colors.scss',
|
||||||
|
'gnome-shell-sass/_widgets.scss',
|
||||||
|
'gnome-shell-sass/widgets/_a11y.scss',
|
||||||
|
'gnome-shell-sass/widgets/_app-grid.scss',
|
||||||
|
'gnome-shell-sass/widgets/_base.scss',
|
||||||
|
'gnome-shell-sass/widgets/_buttons.scss',
|
||||||
|
'gnome-shell-sass/widgets/_calendar.scss',
|
||||||
|
'gnome-shell-sass/widgets/_check-box.scss',
|
||||||
|
'gnome-shell-sass/widgets/_corner-ripple.scss',
|
||||||
|
'gnome-shell-sass/widgets/_dash.scss',
|
||||||
|
'gnome-shell-sass/widgets/_dialogs.scss',
|
||||||
|
'gnome-shell-sass/widgets/_entries.scss',
|
||||||
|
'gnome-shell-sass/widgets/_hotplug.scss',
|
||||||
|
'gnome-shell-sass/widgets/_ibus-popup.scss',
|
||||||
|
'gnome-shell-sass/widgets/_keyboard.scss',
|
||||||
|
'gnome-shell-sass/widgets/_login-dialog.scss',
|
||||||
|
'gnome-shell-sass/widgets/_looking-glass.scss',
|
||||||
|
'gnome-shell-sass/widgets/_message-list.scss',
|
||||||
|
'gnome-shell-sass/widgets/_misc.scss',
|
||||||
|
'gnome-shell-sass/widgets/_network-dialog.scss',
|
||||||
|
'gnome-shell-sass/widgets/_notifications.scss',
|
||||||
|
'gnome-shell-sass/widgets/_osd.scss',
|
||||||
|
'gnome-shell-sass/widgets/_overview.scss',
|
||||||
|
'gnome-shell-sass/widgets/_panel.scss',
|
||||||
|
'gnome-shell-sass/widgets/_popovers.scss',
|
||||||
|
'gnome-shell-sass/widgets/_screen-shield.scss',
|
||||||
|
'gnome-shell-sass/widgets/_scrollbars.scss',
|
||||||
|
'gnome-shell-sass/widgets/_search-entry.scss',
|
||||||
|
'gnome-shell-sass/widgets/_search-results.scss',
|
||||||
|
'gnome-shell-sass/widgets/_slider.scss',
|
||||||
|
'gnome-shell-sass/widgets/_switcher-popup.scss',
|
||||||
|
'gnome-shell-sass/widgets/_switches.scss',
|
||||||
|
'gnome-shell-sass/widgets/_tiled-previews.scss',
|
||||||
|
'gnome-shell-sass/widgets/_window-picker.scss',
|
||||||
|
'gnome-shell-sass/widgets/_workspace-switcher.scss',
|
||||||
|
'gnome-shell-sass/widgets/_workspace-thumbnails.scss'
|
||||||
])
|
])
|
||||||
|
|
||||||
styles = [
|
styles = [
|
||||||
@ -23,3 +58,4 @@ foreach style: styles
|
|||||||
],
|
],
|
||||||
depend_files: theme_sources)
|
depend_files: theme_sources)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 78 KiB |
@ -1 +1 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="46" height="22"><defs><linearGradient id="a"><stop offset="0" stop-color="#39393a"/><stop offset="1" stop-color="#302f30"/></linearGradient><linearGradient xlink:href="#a" id="b" x1="53" y1="294.429" x2="53" y2="309.804" gradientUnits="userSpaceOnUse" gradientTransform="translate(-42.76)"/></defs><g transform="translate(0 -291.18)" stroke-width="1.085"><rect style="marker:none" width="44.446" height="20.911" x=".625" y="291.715" rx="10.455" ry="10.073" fill="#323233" stroke="#272728"/><rect ry="10.455" rx="10.455" y="291.715" x=".543" height="20.911" width="21.143" style="marker:none" fill="url(#b)" stroke="#151515"/></g></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="46" height="22"><defs><linearGradient id="a"><stop offset="0" stop-color="#39393a"/><stop offset="1" stop-color="#302f30"/></linearGradient><linearGradient xlink:href="#a" id="b" x1="53" y1="294.429" x2="53" y2="309.804" gradientUnits="userSpaceOnUse" gradientTransform="translate(-42.76)"/></defs><g transform="translate(0 -291.18)" stroke-width="1.085" stroke="#151515"><rect style="marker:none" width="44.446" height="20.911" x=".625" y="291.715" rx="10.455" ry="10.073" fill="#282828"/><rect ry="10.455" rx="10.455" y="291.715" x=".543" height="20.911" width="21.143" style="marker:none" fill="url(#b)"/></g></svg>
|
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 708 B |
11
js/extensionPrefs/css/application.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
.details-button image {
|
||||||
|
transition: 250ms;
|
||||||
|
}
|
||||||
|
.details-button.expanded:dir(ltr) image {
|
||||||
|
-gtk-icon-transform: rotate(0.25turn);
|
||||||
|
}
|
||||||
|
.details-button.expanded:dir(rtl) image {
|
||||||
|
-gtk-icon-transform: rotate(-0.25turn);
|
||||||
|
}
|
||||||
|
|
||||||
|
image.warning { color: @warning_color; }
|
@ -3,7 +3,7 @@ imports.gi.versions.Gdk = '3.0';
|
|||||||
imports.gi.versions.Gtk = '3.0';
|
imports.gi.versions.Gtk = '3.0';
|
||||||
|
|
||||||
const Gettext = imports.gettext;
|
const Gettext = imports.gettext;
|
||||||
const { Gdk, GLib, Gio, GObject, Gtk, Pango } = imports.gi;
|
const { Gdk, GLib, Gio, GObject, Gtk } = imports.gi;
|
||||||
const Format = imports.format;
|
const Format = imports.format;
|
||||||
|
|
||||||
const _ = Gettext.gettext;
|
const _ = Gettext.gettext;
|
||||||
@ -12,7 +12,7 @@ const Config = imports.misc.config;
|
|||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||||
|
|
||||||
const { ExtensionState } = ExtensionUtils;
|
const { ExtensionState, ExtensionType } = ExtensionUtils;
|
||||||
|
|
||||||
const GnomeShellIface = loadInterfaceXML('org.gnome.Shell.Extensions');
|
const GnomeShellIface = loadInterfaceXML('org.gnome.Shell.Extensions');
|
||||||
const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface);
|
const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface);
|
||||||
@ -28,26 +28,144 @@ class Application extends Gtk.Application {
|
|||||||
_init() {
|
_init() {
|
||||||
GLib.set_prgname('gnome-shell-extension-prefs');
|
GLib.set_prgname('gnome-shell-extension-prefs');
|
||||||
super._init({
|
super._init({
|
||||||
application_id: 'org.gnome.shell.ExtensionPrefs',
|
application_id: 'org.gnome.Extensions',
|
||||||
flags: Gio.ApplicationFlags.HANDLES_COMMAND_LINE,
|
flags: Gio.ApplicationFlags.HANDLES_COMMAND_LINE,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._startupUuid = null;
|
|
||||||
this._loaded = false;
|
|
||||||
this._skipMainWindow = false;
|
|
||||||
this._shellProxy = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get shellProxy() {
|
get shellProxy() {
|
||||||
return this._shellProxy;
|
return this._shellProxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
_showPrefs(uuid) {
|
vfunc_activate() {
|
||||||
let row = this._extensionSelector.get_children().find(c => {
|
this._shellProxy.CheckForUpdatesRemote();
|
||||||
return c.uuid === uuid && c.hasPrefs;
|
this._window.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_startup() {
|
||||||
|
super.vfunc_startup();
|
||||||
|
|
||||||
|
let provider = new Gtk.CssProvider();
|
||||||
|
let uri = 'resource:///org/gnome/shell/css/application.css';
|
||||||
|
try {
|
||||||
|
provider.load_from_file(Gio.File.new_for_uri(uri));
|
||||||
|
} catch (e) {
|
||||||
|
logError(e, 'Failed to add application style');
|
||||||
|
}
|
||||||
|
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
|
||||||
|
provider,
|
||||||
|
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||||
|
|
||||||
|
this._shellProxy = new GnomeShellProxy(Gio.DBus.session, 'org.gnome.Shell', '/org/gnome/Shell');
|
||||||
|
this._window = new ExtensionsWindow({ application: this });
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_command_line(commandLine) {
|
||||||
|
let args = commandLine.get_arguments();
|
||||||
|
|
||||||
|
if (args.length) {
|
||||||
|
let uuid = args[0];
|
||||||
|
|
||||||
|
// Strip off "extension:///" prefix which fakes a URI, if it exists
|
||||||
|
uuid = stripPrefix(uuid, 'extension:///');
|
||||||
|
|
||||||
|
this._window.openPrefs(uuid);
|
||||||
|
} else {
|
||||||
|
this.activate();
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var ExtensionsWindow = GObject.registerClass({
|
||||||
|
GTypeName: 'ExtensionsWindow',
|
||||||
|
Template: 'resource:///org/gnome/shell/ui/extensions-window.ui',
|
||||||
|
InternalChildren: [
|
||||||
|
'userList',
|
||||||
|
'systemList',
|
||||||
|
'killSwitch',
|
||||||
|
'mainBox',
|
||||||
|
'mainStack',
|
||||||
|
'scrolledWindow',
|
||||||
|
'updatesBar',
|
||||||
|
'updatesLabel',
|
||||||
|
],
|
||||||
|
}, class ExtensionsWindow extends Gtk.ApplicationWindow {
|
||||||
|
_init(params) {
|
||||||
|
super._init(params);
|
||||||
|
|
||||||
|
this._startupUuid = null;
|
||||||
|
this._loaded = false;
|
||||||
|
this._prefsDialog = null;
|
||||||
|
this._updatesCheckId = 0;
|
||||||
|
|
||||||
|
this._mainBox.set_focus_vadjustment(this._scrolledWindow.vadjustment);
|
||||||
|
|
||||||
|
let action;
|
||||||
|
action = new Gio.SimpleAction({ name: 'show-about' });
|
||||||
|
action.connect('activate', this._showAbout.bind(this));
|
||||||
|
this.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({ name: 'logout' });
|
||||||
|
action.connect('activate', this._logout.bind(this));
|
||||||
|
this.add_action(action);
|
||||||
|
|
||||||
|
this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
|
||||||
|
this._settings.bind('disable-user-extensions',
|
||||||
|
this._killSwitch, 'active',
|
||||||
|
Gio.SettingsBindFlags.DEFAULT | Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
||||||
|
|
||||||
|
this._userList.set_sort_func(this._sortList.bind(this));
|
||||||
|
this._userList.set_header_func(this._updateHeader.bind(this));
|
||||||
|
|
||||||
|
this._systemList.set_sort_func(this._sortList.bind(this));
|
||||||
|
this._systemList.set_header_func(this._updateHeader.bind(this));
|
||||||
|
|
||||||
|
this._shellProxy.connectSignal('ExtensionStateChanged',
|
||||||
|
this._onExtensionStateChanged.bind(this));
|
||||||
|
|
||||||
|
this._scanExtensions();
|
||||||
|
}
|
||||||
|
|
||||||
|
get _shellProxy() {
|
||||||
|
return this.application.shellProxy;
|
||||||
|
}
|
||||||
|
|
||||||
|
uninstall(uuid) {
|
||||||
|
let row = this._findExtensionRow(uuid);
|
||||||
|
|
||||||
|
let dialog = new Gtk.MessageDialog({
|
||||||
|
transient_for: this,
|
||||||
|
modal: true,
|
||||||
|
text: _('Remove “%s”?').format(row.name),
|
||||||
|
secondary_text: _('If you remove the extension, you need to return to download it if you want to enable it again'),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!row)
|
dialog.add_button(_('Cancel'), Gtk.ResponseType.CANCEL);
|
||||||
|
dialog.add_button(_('Remove'), Gtk.ResponseType.ACCEPT)
|
||||||
|
.get_style_context().add_class('destructive-action');
|
||||||
|
|
||||||
|
dialog.connect('response', (dlg, response) => {
|
||||||
|
if (response === Gtk.ResponseType.ACCEPT)
|
||||||
|
this._shellProxy.UninstallExtensionRemote(uuid);
|
||||||
|
dialog.destroy();
|
||||||
|
});
|
||||||
|
dialog.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
openPrefs(uuid) {
|
||||||
|
if (!this._loaded)
|
||||||
|
this._startupUuid = uuid;
|
||||||
|
else if (!this._showPrefs(uuid))
|
||||||
|
this.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
_showPrefs(uuid) {
|
||||||
|
if (this._prefsDialog)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
let row = this._findExtensionRow(uuid);
|
||||||
|
if (!row || !row.hasPrefs)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
let widget;
|
let widget;
|
||||||
@ -58,33 +176,73 @@ class Application extends Gtk.Application {
|
|||||||
widget = this._buildErrorUI(row, e);
|
widget = this._buildErrorUI(row, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
let dialog = new Gtk.Window({
|
this._prefsDialog = new Gtk.Window({
|
||||||
modal: !this._skipMainWindow,
|
application: this.application,
|
||||||
|
default_width: 600,
|
||||||
|
default_height: 400,
|
||||||
|
modal: this.visible,
|
||||||
type_hint: Gdk.WindowTypeHint.DIALOG,
|
type_hint: Gdk.WindowTypeHint.DIALOG,
|
||||||
|
window_position: Gtk.WindowPosition.CENTER,
|
||||||
});
|
});
|
||||||
dialog.set_titlebar(new Gtk.HeaderBar({
|
|
||||||
|
this._prefsDialog.set_titlebar(new Gtk.HeaderBar({
|
||||||
show_close_button: true,
|
show_close_button: true,
|
||||||
title: row.name,
|
title: row.name,
|
||||||
visible: true,
|
visible: true,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (this._skipMainWindow) {
|
if (this.visible)
|
||||||
this.add_window(dialog);
|
this._prefsDialog.transient_for = this;
|
||||||
if (this._window)
|
|
||||||
this._window.destroy();
|
|
||||||
this._window = dialog;
|
|
||||||
this._window.window_position = Gtk.WindowPosition.CENTER;
|
|
||||||
} else {
|
|
||||||
dialog.transient_for = this._window;
|
|
||||||
}
|
|
||||||
|
|
||||||
dialog.set_default_size(600, 400);
|
this._prefsDialog.connect('destroy', () => {
|
||||||
dialog.add(widget);
|
this._prefsDialog = null;
|
||||||
dialog.show();
|
|
||||||
|
if (!this.visible)
|
||||||
|
this.destroy();
|
||||||
|
});
|
||||||
|
|
||||||
|
this._prefsDialog.add(widget);
|
||||||
|
this._prefsDialog.show();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_showAbout() {
|
||||||
|
let aboutDialog = new Gtk.AboutDialog({
|
||||||
|
authors: [
|
||||||
|
'Florian Müllner <fmuellner@gnome.org>',
|
||||||
|
'Jasper St. Pierre <jstpierre@mecheye.net>',
|
||||||
|
'Didier Roche <didrocks@ubuntu.com>',
|
||||||
|
],
|
||||||
|
translator_credits: _('translator-credits'),
|
||||||
|
program_name: _('Extensions'),
|
||||||
|
comments: _('Manage your GNOME Extensions'),
|
||||||
|
license_type: Gtk.License.GPL_2_0,
|
||||||
|
logo_icon_name: 'org.gnome.Extensions',
|
||||||
|
version: Config.PACKAGE_VERSION,
|
||||||
|
|
||||||
|
transient_for: this,
|
||||||
|
modal: true,
|
||||||
|
});
|
||||||
|
aboutDialog.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
_logout() {
|
||||||
|
this.application.get_dbus_connection().call(
|
||||||
|
'org.gnome.SessionManager',
|
||||||
|
'/org/gnome/SessionManager',
|
||||||
|
'org.gnome.SessionManager',
|
||||||
|
'Logout',
|
||||||
|
new GLib.Variant('(u)', [0]),
|
||||||
|
null,
|
||||||
|
Gio.DBusCallFlags.NONE,
|
||||||
|
-1,
|
||||||
|
null,
|
||||||
|
(o, res) => {
|
||||||
|
o.call_finish(res);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
_buildErrorUI(row, exc) {
|
_buildErrorUI(row, exc) {
|
||||||
let scroll = new Gtk.ScrolledWindow({
|
let scroll = new Gtk.ScrolledWindow({
|
||||||
hscrollbar_policy: Gtk.PolicyType.NEVER,
|
hscrollbar_policy: Gtk.PolicyType.NEVER,
|
||||||
@ -119,10 +277,10 @@ class Application extends Gtk.Application {
|
|||||||
});
|
});
|
||||||
box.add(expander);
|
box.add(expander);
|
||||||
|
|
||||||
let errortext = `${exc}\n\nStack trace:\n${
|
let errortext = '%s\n\nStack trace:\n'.format(exc);
|
||||||
// Indent stack trace.
|
// Indent stack trace.
|
||||||
exc.stack.split('\n').map(line => ` ${line}`).join('\n')
|
errortext +=
|
||||||
}`;
|
exc.stack.split('\n').map(line => ' %s'.format(line)).join('\n');
|
||||||
|
|
||||||
let buffer = new Gtk.TextBuffer({ text: errortext });
|
let buffer = new Gtk.TextBuffer({ text: errortext });
|
||||||
let textview = new Gtk.TextView({
|
let textview = new Gtk.TextView({
|
||||||
@ -157,9 +315,9 @@ class Application extends Gtk.Application {
|
|||||||
let clipboard = Gtk.Clipboard.get_default(w.get_display());
|
let clipboard = Gtk.Clipboard.get_default(w.get_display());
|
||||||
// markdown for pasting in gitlab issues
|
// markdown for pasting in gitlab issues
|
||||||
let lines = [
|
let lines = [
|
||||||
`The settings of extension ${row.uuid} had an error:`,
|
'The settings of extension %s had an error:'.format(row.uuid),
|
||||||
'```', // '`' (xgettext throws up on odd number of backticks)
|
'```', // '`' (xgettext throws up on odd number of backticks)
|
||||||
`${exc}`,
|
exc.toString(),
|
||||||
'```', // '`'
|
'```', // '`'
|
||||||
'',
|
'',
|
||||||
'Stack trace:',
|
'Stack trace:',
|
||||||
@ -179,7 +337,7 @@ class Application extends Gtk.Application {
|
|||||||
label: _("Homepage"),
|
label: _("Homepage"),
|
||||||
tooltip_text: _("Visit extension homepage"),
|
tooltip_text: _("Visit extension homepage"),
|
||||||
no_show_all: true,
|
no_show_all: true,
|
||||||
visible: row.url != null,
|
visible: row.url !== '',
|
||||||
});
|
});
|
||||||
toolbar.add(urlButton);
|
toolbar.add(urlButton);
|
||||||
|
|
||||||
@ -200,47 +358,6 @@ class Application extends Gtk.Application {
|
|||||||
return scroll;
|
return scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildUI() {
|
|
||||||
this._window = new Gtk.ApplicationWindow({ application: this,
|
|
||||||
window_position: Gtk.WindowPosition.CENTER });
|
|
||||||
|
|
||||||
this._window.set_default_size(800, 500);
|
|
||||||
|
|
||||||
this._titlebar = new Gtk.HeaderBar({ show_close_button: true,
|
|
||||||
title: _("Shell Extensions") });
|
|
||||||
this._window.set_titlebar(this._titlebar);
|
|
||||||
|
|
||||||
let killSwitch = new Gtk.Switch({ valign: Gtk.Align.CENTER });
|
|
||||||
this._titlebar.pack_end(killSwitch);
|
|
||||||
|
|
||||||
this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
|
|
||||||
this._settings.bind('disable-user-extensions', killSwitch, 'active',
|
|
||||||
Gio.SettingsBindFlags.DEFAULT |
|
|
||||||
Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
|
||||||
|
|
||||||
this._mainStack = new Gtk.Stack({
|
|
||||||
transition_type: Gtk.StackTransitionType.CROSSFADE,
|
|
||||||
});
|
|
||||||
this._window.add(this._mainStack);
|
|
||||||
|
|
||||||
let scroll = new Gtk.ScrolledWindow({ hscrollbar_policy: Gtk.PolicyType.NEVER });
|
|
||||||
|
|
||||||
this._extensionSelector = new Gtk.ListBox({ selection_mode: Gtk.SelectionMode.NONE });
|
|
||||||
this._extensionSelector.set_sort_func(this._sortList.bind(this));
|
|
||||||
this._extensionSelector.set_header_func(this._updateHeader.bind(this));
|
|
||||||
|
|
||||||
scroll.add(this._extensionSelector);
|
|
||||||
|
|
||||||
this._mainStack.add_named(scroll, 'listing');
|
|
||||||
this._mainStack.add_named(new EmptyPlaceholder(), 'placeholder');
|
|
||||||
|
|
||||||
this._shellProxy = new GnomeShellProxy(Gio.DBus.session, 'org.gnome.Shell', '/org/gnome/Shell');
|
|
||||||
this._shellProxy.connectSignal('ExtensionStateChanged',
|
|
||||||
this._onExtensionStateChanged.bind(this));
|
|
||||||
|
|
||||||
this._window.show_all();
|
|
||||||
}
|
|
||||||
|
|
||||||
_sortList(row1, row2) {
|
_sortList(row1, row2) {
|
||||||
return row1.name.localeCompare(row2.name);
|
return row1.name.localeCompare(row2.name);
|
||||||
}
|
}
|
||||||
@ -254,13 +371,26 @@ class Application extends Gtk.Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_findExtensionRow(uuid) {
|
_findExtensionRow(uuid) {
|
||||||
return this._extensionSelector.get_children().find(c => c.uuid === uuid);
|
return [
|
||||||
|
...this._userList.get_children(),
|
||||||
|
...this._systemList.get_children(),
|
||||||
|
].find(c => c.uuid === uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onExtensionStateChanged(proxy, senderName, [uuid, newState]) {
|
_onExtensionStateChanged(proxy, senderName, [uuid, newState]) {
|
||||||
let extension = ExtensionUtils.deserializeExtension(newState);
|
let extension = ExtensionUtils.deserializeExtension(newState);
|
||||||
let row = this._findExtensionRow(uuid);
|
let row = this._findExtensionRow(uuid);
|
||||||
|
|
||||||
|
this._queueUpdatesCheck();
|
||||||
|
|
||||||
|
// the extension's type changed; remove the corresponding row
|
||||||
|
// and reset the variable to null so that we create a new row
|
||||||
|
// below and add it to the appropriate list
|
||||||
|
if (row && row.type !== extension.type) {
|
||||||
|
row.destroy();
|
||||||
|
row = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (row) {
|
if (row) {
|
||||||
if (extension.state === ExtensionState.UNINSTALLED)
|
if (extension.state === ExtensionState.UNINSTALLED)
|
||||||
row.destroy();
|
row.destroy();
|
||||||
@ -273,8 +403,7 @@ class Application extends Gtk.Application {
|
|||||||
this._shellProxy.ListExtensionsRemote(([extensionsMap], e) => {
|
this._shellProxy.ListExtensionsRemote(([extensionsMap], e) => {
|
||||||
if (e) {
|
if (e) {
|
||||||
if (e instanceof Gio.DBusError) {
|
if (e instanceof Gio.DBusError) {
|
||||||
log(`Failed to connect to shell proxy: ${e}`);
|
log('Failed to connect to shell proxy: %s'.format(e.toString()));
|
||||||
this._mainStack.add_named(new NoShellPlaceholder(), 'noshell');
|
|
||||||
this._mainStack.visible_child_name = 'noshell';
|
this._mainStack.visible_child_name = 'noshell';
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
@ -292,58 +421,53 @@ class Application extends Gtk.Application {
|
|||||||
|
|
||||||
_addExtensionRow(extension) {
|
_addExtensionRow(extension) {
|
||||||
let row = new ExtensionRow(extension);
|
let row = new ExtensionRow(extension);
|
||||||
|
|
||||||
row.prefsButton.connect('clicked', () => {
|
|
||||||
this._showPrefs(row.uuid);
|
|
||||||
});
|
|
||||||
|
|
||||||
row.show_all();
|
row.show_all();
|
||||||
this._extensionSelector.add(row);
|
|
||||||
|
if (row.type === ExtensionType.PER_USER)
|
||||||
|
this._userList.add(row);
|
||||||
|
else
|
||||||
|
this._systemList.add(row);
|
||||||
|
}
|
||||||
|
|
||||||
|
_queueUpdatesCheck() {
|
||||||
|
if (this._updatesCheckId)
|
||||||
|
return;
|
||||||
|
|
||||||
|
this._updatesCheckId = GLib.timeout_add_seconds(
|
||||||
|
GLib.PRIORITY_DEFAULT, 1, () => {
|
||||||
|
this._checkUpdates();
|
||||||
|
|
||||||
|
this._updatesCheckId = 0;
|
||||||
|
return GLib.SOURCE_REMOVE;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkUpdates() {
|
||||||
|
let nUpdates = this._userList.get_children().filter(c => c.hasUpdate).length;
|
||||||
|
|
||||||
|
this._updatesLabel.label = Gettext.ngettext(
|
||||||
|
'%d extension will be updated on next login.',
|
||||||
|
'%d extensions will be updated on next login.',
|
||||||
|
nUpdates).format(nUpdates);
|
||||||
|
this._updatesBar.visible = nUpdates > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_extensionsLoaded() {
|
_extensionsLoaded() {
|
||||||
if (this._extensionSelector.get_children().length > 0)
|
this._userList.visible = this._userList.get_children().length > 0;
|
||||||
this._mainStack.visible_child_name = 'listing';
|
this._systemList.visible = this._systemList.get_children().length > 0;
|
||||||
|
|
||||||
|
if (this._userList.visible || this._systemList.visible)
|
||||||
|
this._mainStack.visible_child_name = 'main';
|
||||||
else
|
else
|
||||||
this._mainStack.visible_child_name = 'placeholder';
|
this._mainStack.visible_child_name = 'placeholder';
|
||||||
|
|
||||||
|
this._checkUpdates();
|
||||||
|
|
||||||
if (this._startupUuid)
|
if (this._startupUuid)
|
||||||
this._showPrefs(this._startupUuid);
|
this._showPrefs(this._startupUuid);
|
||||||
this._startupUuid = null;
|
this._startupUuid = null;
|
||||||
this._skipMainWindow = false;
|
|
||||||
this._loaded = true;
|
this._loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
vfunc_activate() {
|
|
||||||
this._window.present();
|
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_startup() {
|
|
||||||
super.vfunc_startup();
|
|
||||||
|
|
||||||
this._buildUI();
|
|
||||||
this._scanExtensions();
|
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_command_line(commandLine) {
|
|
||||||
this.activate();
|
|
||||||
let args = commandLine.get_arguments();
|
|
||||||
|
|
||||||
if (args.length) {
|
|
||||||
let uuid = args[0];
|
|
||||||
|
|
||||||
this._skipMainWindow = true;
|
|
||||||
|
|
||||||
// Strip off "extension:///" prefix which fakes a URI, if it exists
|
|
||||||
uuid = stripPrefix(uuid, "extension:///");
|
|
||||||
|
|
||||||
if (!this._loaded)
|
|
||||||
this._startupUuid = uuid;
|
|
||||||
else if (!this._showPrefs(uuid))
|
|
||||||
this._skipMainWindow = false;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var Expander = GObject.registerClass({
|
var Expander = GObject.registerClass({
|
||||||
@ -445,113 +569,19 @@ var Expander = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var EmptyPlaceholder = GObject.registerClass(
|
var ExtensionRow = GObject.registerClass({
|
||||||
class EmptyPlaceholder extends Gtk.Box {
|
GTypeName: 'ExtensionRow',
|
||||||
_init() {
|
Template: 'resource:///org/gnome/shell/ui/extension-row.ui',
|
||||||
super._init({
|
InternalChildren: [
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
'nameLabel',
|
||||||
spacing: 6,
|
'descriptionLabel',
|
||||||
margin: 32,
|
'versionLabel',
|
||||||
});
|
'authorLabel',
|
||||||
|
'updatesIcon',
|
||||||
let image = new Gtk.Image({
|
'revealButton',
|
||||||
icon_name: 'application-x-addon-symbolic',
|
'revealer',
|
||||||
pixel_size: 96,
|
],
|
||||||
visible: true,
|
}, class ExtensionRow extends Gtk.ListBoxRow {
|
||||||
vexpand: true,
|
|
||||||
valign: Gtk.Align.END,
|
|
||||||
});
|
|
||||||
image.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);
|
|
||||||
this.add(image);
|
|
||||||
|
|
||||||
let label = new Gtk.Label({
|
|
||||||
label: `<b><span size="x-large">${_("No Extensions Installed")}</span></b>`,
|
|
||||||
use_markup: true,
|
|
||||||
visible: true,
|
|
||||||
});
|
|
||||||
label.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);
|
|
||||||
this.add(label);
|
|
||||||
|
|
||||||
let appInfo = Gio.DesktopAppInfo.new('org.gnome.Software.desktop');
|
|
||||||
|
|
||||||
let desc = new Gtk.Label({
|
|
||||||
label: _("Extensions can be installed through Software or <a href=\"https://extensions.gnome.org\">extensions.gnome.org</a>."),
|
|
||||||
use_markup: true,
|
|
||||||
wrap: true,
|
|
||||||
justify: Gtk.Justification.CENTER,
|
|
||||||
visible: true,
|
|
||||||
max_width_chars: 50,
|
|
||||||
hexpand: true,
|
|
||||||
vexpand: appInfo == null,
|
|
||||||
halign: Gtk.Align.CENTER,
|
|
||||||
valign: Gtk.Align.START,
|
|
||||||
});
|
|
||||||
this.add(desc);
|
|
||||||
|
|
||||||
if (appInfo) {
|
|
||||||
let button = new Gtk.Button({
|
|
||||||
label: _("Browse in Software"),
|
|
||||||
image: new Gtk.Image({
|
|
||||||
icon_name: "org.gnome.Software-symbolic",
|
|
||||||
}),
|
|
||||||
always_show_image: true,
|
|
||||||
margin_top: 12,
|
|
||||||
visible: true,
|
|
||||||
halign: Gtk.Align.CENTER,
|
|
||||||
valign: Gtk.Align.START,
|
|
||||||
vexpand: true,
|
|
||||||
});
|
|
||||||
this.add(button);
|
|
||||||
|
|
||||||
button.connect('clicked', w => {
|
|
||||||
let context = w.get_display().get_app_launch_context();
|
|
||||||
appInfo.launch([], context);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var NoShellPlaceholder = GObject.registerClass(
|
|
||||||
class NoShellPlaceholder extends Gtk.Box {
|
|
||||||
_init() {
|
|
||||||
super._init({
|
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
|
||||||
spacing: 12,
|
|
||||||
margin: 100,
|
|
||||||
margin_bottom: 60,
|
|
||||||
});
|
|
||||||
|
|
||||||
let label = new Gtk.Label({
|
|
||||||
label: '<span size="x-large">%s</span>'.format(
|
|
||||||
_("Something’s gone wrong")),
|
|
||||||
use_markup: true,
|
|
||||||
});
|
|
||||||
label.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);
|
|
||||||
this.add(label);
|
|
||||||
|
|
||||||
label = new Gtk.Label({
|
|
||||||
label: _("We’re very sorry, but it was not possible to get the list of installed extensions. Make sure you are logged into GNOME and try again."),
|
|
||||||
justify: Gtk.Justification.CENTER,
|
|
||||||
wrap: true,
|
|
||||||
});
|
|
||||||
this.add(label);
|
|
||||||
|
|
||||||
this.show_all();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var DescriptionLabel = GObject.registerClass(
|
|
||||||
class DescriptionLabel extends Gtk.Label {
|
|
||||||
vfunc_get_preferred_height_for_width(width) {
|
|
||||||
// Hack: Request the maximum height allowed by the line limit
|
|
||||||
if (this.lines > 0)
|
|
||||||
return super.vfunc_get_preferred_height_for_width(0);
|
|
||||||
return super.vfunc_get_preferred_height_for_width(width);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var ExtensionRow = GObject.registerClass(
|
|
||||||
class ExtensionRow extends Gtk.ListBoxRow {
|
|
||||||
_init(extension) {
|
_init(extension) {
|
||||||
super._init();
|
super._init();
|
||||||
|
|
||||||
@ -559,9 +589,67 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
this._extension = extension;
|
this._extension = extension;
|
||||||
this._prefsModule = null;
|
this._prefsModule = null;
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
this._actionGroup = new Gio.SimpleActionGroup();
|
||||||
|
this.insert_action_group('row', this._actionGroup);
|
||||||
|
|
||||||
this._buildUI();
|
let action;
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'show-prefs',
|
||||||
|
enabled: this.hasPrefs,
|
||||||
|
});
|
||||||
|
action.connect('activate', () => this.get_toplevel().openPrefs(this.uuid));
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'show-url',
|
||||||
|
enabled: this.url !== '',
|
||||||
|
});
|
||||||
|
action.connect('activate', () => {
|
||||||
|
Gio.AppInfo.launch_default_for_uri(
|
||||||
|
this.url, this.get_display().get_app_launch_context());
|
||||||
|
});
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'uninstall',
|
||||||
|
enabled: this.type === ExtensionType.PER_USER,
|
||||||
|
});
|
||||||
|
action.connect('activate', () => this.get_toplevel().uninstall(this.uuid));
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'enabled',
|
||||||
|
state: new GLib.Variant('b', false),
|
||||||
|
});
|
||||||
|
action.connect('activate', () => {
|
||||||
|
let state = action.get_state();
|
||||||
|
action.change_state(new GLib.Variant('b', !state.get_boolean()));
|
||||||
|
});
|
||||||
|
action.connect('change-state', (a, state) => {
|
||||||
|
if (state.get_boolean())
|
||||||
|
this._app.shellProxy.EnableExtensionRemote(this.uuid);
|
||||||
|
else
|
||||||
|
this._app.shellProxy.DisableExtensionRemote(this.uuid);
|
||||||
|
});
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
let name = GLib.markup_escape_text(this.name, -1);
|
||||||
|
this._nameLabel.label = name;
|
||||||
|
|
||||||
|
let desc = this._extension.metadata.description.split('\n')[0];
|
||||||
|
this._descriptionLabel.label = desc;
|
||||||
|
|
||||||
|
this._revealButton.connect('clicked', () => {
|
||||||
|
this._revealer.reveal_child = !this._revealer.reveal_child;
|
||||||
|
});
|
||||||
|
this._revealer.connect('notify::reveal-child', () => {
|
||||||
|
if (this._revealer.reveal_child)
|
||||||
|
this._revealButton.get_style_context().add_class('expanded');
|
||||||
|
else
|
||||||
|
this._revealButton.get_style_context().remove_class('expanded');
|
||||||
|
});
|
||||||
|
|
||||||
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
|
|
||||||
this._extensionStateChangedId = this._app.shellProxy.connectSignal(
|
this._extensionStateChangedId = this._app.shellProxy.connectSignal(
|
||||||
'ExtensionStateChanged', (p, sender, [uuid, newState]) => {
|
'ExtensionStateChanged', (p, sender, [uuid, newState]) => {
|
||||||
@ -569,14 +657,9 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._extension = ExtensionUtils.deserializeExtension(newState);
|
this._extension = ExtensionUtils.deserializeExtension(newState);
|
||||||
let state = this._extension.state == ExtensionState.ENABLED;
|
this._updateState();
|
||||||
|
|
||||||
this._switch.block_signal_handler(this._notifyActiveId);
|
|
||||||
this._switch.state = state;
|
|
||||||
this._switch.unblock_signal_handler(this._notifyActiveId);
|
|
||||||
|
|
||||||
this._switch.sensitive = this._canToggle();
|
|
||||||
});
|
});
|
||||||
|
this._updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
get uuid() {
|
get uuid() {
|
||||||
@ -591,8 +674,40 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
return this._extension.hasPrefs;
|
return this._extension.hasPrefs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get hasUpdate() {
|
||||||
|
return this._extension.hasUpdate || false;
|
||||||
|
}
|
||||||
|
|
||||||
|
get type() {
|
||||||
|
return this._extension.type;
|
||||||
|
}
|
||||||
|
|
||||||
|
get creator() {
|
||||||
|
return this._extension.metadata.creator || '';
|
||||||
|
}
|
||||||
|
|
||||||
get url() {
|
get url() {
|
||||||
return this._extension.metadata.url;
|
return this._extension.metadata.url || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
get version() {
|
||||||
|
return this._extension.metadata.version || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateState() {
|
||||||
|
let state = this._extension.state === ExtensionState.ENABLED;
|
||||||
|
|
||||||
|
let action = this._actionGroup.lookup('enabled');
|
||||||
|
action.set_state(new GLib.Variant('b', state));
|
||||||
|
action.enabled = this._canToggle();
|
||||||
|
|
||||||
|
this._updatesIcon.visible = this.hasUpdate;
|
||||||
|
|
||||||
|
this._versionLabel.label = this.version.toString();
|
||||||
|
this._versionLabel.visible = this.version !== '';
|
||||||
|
|
||||||
|
this._authorLabel.label = this.creator.toString();
|
||||||
|
this._authorLabel.visible = this.creator !== '';
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDestroy() {
|
_onDestroy() {
|
||||||
@ -604,54 +719,6 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
this._extensionStateChangedId = 0;
|
this._extensionStateChangedId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildUI() {
|
|
||||||
let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL,
|
|
||||||
hexpand: true, margin_end: 24, spacing: 24,
|
|
||||||
margin: 12 });
|
|
||||||
this.add(hbox);
|
|
||||||
|
|
||||||
let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL,
|
|
||||||
spacing: 6, hexpand: true });
|
|
||||||
hbox.add(vbox);
|
|
||||||
|
|
||||||
let name = GLib.markup_escape_text(this.name, -1);
|
|
||||||
let label = new Gtk.Label({ label: '<b>' + name + '</b>',
|
|
||||||
use_markup: true,
|
|
||||||
halign: Gtk.Align.START });
|
|
||||||
vbox.add(label);
|
|
||||||
|
|
||||||
let desc = this._extension.metadata.description.split('\n')[0];
|
|
||||||
label = new DescriptionLabel({ label: desc, wrap: true, lines: 2,
|
|
||||||
ellipsize: Pango.EllipsizeMode.END,
|
|
||||||
xalign: 0, yalign: 0 });
|
|
||||||
vbox.add(label);
|
|
||||||
|
|
||||||
let button = new Gtk.Button({ valign: Gtk.Align.CENTER,
|
|
||||||
visible: this.hasPrefs,
|
|
||||||
no_show_all: true });
|
|
||||||
button.set_image(new Gtk.Image({ icon_name: 'emblem-system-symbolic',
|
|
||||||
icon_size: Gtk.IconSize.BUTTON,
|
|
||||||
visible: true }));
|
|
||||||
button.get_style_context().add_class('circular');
|
|
||||||
hbox.add(button);
|
|
||||||
|
|
||||||
this.prefsButton = button;
|
|
||||||
|
|
||||||
this._switch = new Gtk.Switch({
|
|
||||||
valign: Gtk.Align.CENTER,
|
|
||||||
sensitive: this._canToggle(),
|
|
||||||
state: this._extension.state === ExtensionState.ENABLED,
|
|
||||||
});
|
|
||||||
this._notifyActiveId = this._switch.connect('notify::active', () => {
|
|
||||||
if (this._switch.active)
|
|
||||||
this._app.shellProxy.EnableExtensionRemote(this.uuid);
|
|
||||||
else
|
|
||||||
this._app.shellProxy.DisableExtensionRemote(this.uuid);
|
|
||||||
});
|
|
||||||
this._switch.connect('state-set', () => true);
|
|
||||||
hbox.add(this._switch);
|
|
||||||
}
|
|
||||||
|
|
||||||
_canToggle() {
|
_canToggle() {
|
||||||
return this._extension.canChange;
|
return this._extension.canChange;
|
||||||
}
|
}
|
||||||
@ -680,7 +747,7 @@ function initEnvironment() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
logError(s) {
|
logError(s) {
|
||||||
log(`ERROR: ${s}`);
|
log('ERROR: %s'.format(s));
|
||||||
},
|
},
|
||||||
|
|
||||||
userdatadir: GLib.build_filenamev([GLib.get_user_data_dir(), 'gnome-shell']),
|
userdatadir: GLib.build_filenamev([GLib.get_user_data_dir(), 'gnome-shell']),
|
||||||
@ -692,8 +759,5 @@ function initEnvironment() {
|
|||||||
function main(argv) {
|
function main(argv) {
|
||||||
initEnvironment();
|
initEnvironment();
|
||||||
|
|
||||||
Gettext.bindtextdomain(Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
|
|
||||||
Gettext.textdomain(Config.GETTEXT_PACKAGE);
|
|
||||||
|
|
||||||
new Application().run(argv);
|
new Application().run(argv);
|
||||||
}
|
}
|
||||||
|
218
js/extensionPrefs/ui/extension-row.ui
Normal file
@ -0,0 +1,218 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.22.0 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.20"/>
|
||||||
|
<template class="ExtensionRow" parent="GtkListBoxRow">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="activatable">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="margin">12</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="nameLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="updatesIcon">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="icon_name">software-update-available-symbolic</property>
|
||||||
|
<style>
|
||||||
|
<class name="warning"/>>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="prefsButton">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="prefsButton"
|
||||||
|
bind-property="sensitive"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="action-name">row.show-prefs</property>
|
||||||
|
<style>
|
||||||
|
<class name="circular"/>>
|
||||||
|
<class name="image-button"/>>
|
||||||
|
</style>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">emblem-system-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="action-name">row.enabled</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSeparator">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="revealButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<style>
|
||||||
|
<class name="details-button"/>
|
||||||
|
<class name="image-button"/>
|
||||||
|
<class name="flat"/>
|
||||||
|
</style>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">pan-end-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRevealer" id="revealer">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="margin_top">12</property>
|
||||||
|
<property name="row_spacing">6</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Description</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="descriptionLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
|
<property name="max_width_chars">60</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="versionLabel"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="label" translatable="yes">Version</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="versionLabel">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="authorLabel"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="label" translatable="yes">Author</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="authorLabel">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Website</property>
|
||||||
|
<property name="action_name">row.show-url</property>
|
||||||
|
<property name="valign">end</property>
|
||||||
|
<property name="margin-top">12</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="removeButton">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="removeButton"
|
||||||
|
bind-property="sensitive"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="label" translatable="yes">Remove…</property>
|
||||||
|
<property name="action_name">row.uninstall</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="halign">end</property>
|
||||||
|
<property name="valign">end</property>
|
||||||
|
<style>
|
||||||
|
<class name="destructive-action"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">7</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</template>
|
||||||
|
</interface>
|
305
js/extensionPrefs/ui/extensions-window.ui
Normal file
@ -0,0 +1,305 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.22.0 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.20"/>
|
||||||
|
<menu id="primary-menu">
|
||||||
|
<section>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">Help</attribute>
|
||||||
|
<attribute name="action">win.show-help</attribute>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">About Extensions</attribute>
|
||||||
|
<attribute name="action">win.show-about</attribute>
|
||||||
|
</item>
|
||||||
|
</section>
|
||||||
|
</menu>
|
||||||
|
<object class="GtkPopover" id="infoPopover">
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="margin">12</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">To find and add extensions, visit <a href="https://extensions.gnome.org">extensions.gnome.org</a>.</property>
|
||||||
|
<property name="use_markup">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Warning</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="margin_top">6</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Extensions can cause system issues, including performance problems. If you encounter problems with your system, it is recommended to disable all extensions.</property>
|
||||||
|
<property name="wrap">True</property>
|
||||||
|
<property name="max_width_chars">40</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<template class="ExtensionsWindow" parent="GtkApplicationWindow">
|
||||||
|
<property name="default_width">800</property>
|
||||||
|
<property name="default_height">500</property>
|
||||||
|
<child type="titlebar">
|
||||||
|
<object class="GtkHeaderBar">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="title" translatable="yes">Extensions</property>
|
||||||
|
<property name="show_close_button">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="popover">infoPopover</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">dialog-information-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuButton" id="menuButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="menu_model">primary-menu</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">open-menu-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="killSwitch">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStack" id="mainStack">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="transition_type">crossfade</property>
|
||||||
|
<property name="vexpand">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkScrolledWindow" id="scrolledWindow">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="hscrollbar_policy">never</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkViewport">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="mainBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="margin">36</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="userList"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label" translatable="yes">Manually Installed</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkListBox" id="userList">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="selection_mode">none</property>
|
||||||
|
<property name="margin_bottom">24</property>
|
||||||
|
<style>
|
||||||
|
<class name="frame"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="systemList"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label" translatable="yes">Built-In</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkListBox" id="systemList">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="selection_mode">none</property>
|
||||||
|
<style>
|
||||||
|
<class name="frame"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">main</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="margin">32</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="pixel_size">96</property>
|
||||||
|
<property name="icon_name">org.gnome.Extensions-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">No Installed Extensions</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
<attribute name="scale" value="1.44"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">placeholder</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="margin_left">100</property>
|
||||||
|
<property name="margin_right">100</property>
|
||||||
|
<property name="margin_top">100</property>
|
||||||
|
<property name="margin_bottom">60</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Something’s gone wrong</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="scale" value="1.44"/>
|
||||||
|
</attributes>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">We’re very sorry, but it was not possible to get the list of installed extensions. Make sure you are logged into GNOME and try again.</property>
|
||||||
|
<property name="justify">center</property>
|
||||||
|
<property name="wrap">True</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">noshell</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkActionBar" id="updatesBar">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="pixel-size">24</property>
|
||||||
|
<property name="margin">6</property>
|
||||||
|
<property name="icon_name">software-update-available-symbolic</property>
|
||||||
|
<style>
|
||||||
|
<class name="warning"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="label">Extension Updates Ready</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="updatesLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="label" translatable="yes">Log Out…</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="action-name">win.logout</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<style>
|
||||||
|
<class name="suggested-action"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</template>
|
||||||
|
</interface>
|
@ -17,10 +17,6 @@ var DEFAULT_BUTTON_WELL_ANIMATION_TIME = 300;
|
|||||||
|
|
||||||
var MESSAGE_FADE_OUT_ANIMATION_TIME = 500;
|
var MESSAGE_FADE_OUT_ANIMATION_TIME = 500;
|
||||||
|
|
||||||
const WIGGLE_OFFSET = 6;
|
|
||||||
const WIGGLE_DURATION = 65;
|
|
||||||
const N_WIGGLES = 3;
|
|
||||||
|
|
||||||
var AuthPromptMode = {
|
var AuthPromptMode = {
|
||||||
UNLOCK_ONLY: 0,
|
UNLOCK_ONLY: 0,
|
||||||
UNLOCK_OR_LOG_IN: 1,
|
UNLOCK_OR_LOG_IN: 1,
|
||||||
@ -51,12 +47,15 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
super._init({
|
super._init({
|
||||||
style_class: 'login-dialog-prompt-layout',
|
style_class: 'login-dialog-prompt-layout',
|
||||||
vertical: true,
|
vertical: true,
|
||||||
|
x_expand: true,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
|
this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
|
||||||
|
|
||||||
this._gdmClient = gdmClient;
|
this._gdmClient = gdmClient;
|
||||||
this._mode = mode;
|
this._mode = mode;
|
||||||
|
this._defaultButtonWellActor = null;
|
||||||
|
|
||||||
let reauthenticationOnly;
|
let reauthenticationOnly;
|
||||||
if (this._mode == AuthPromptMode.UNLOCK_ONLY)
|
if (this._mode == AuthPromptMode.UNLOCK_ONLY)
|
||||||
@ -75,15 +74,6 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
this._userVerifier.connect('ovirt-user-authenticated', this._onOVirtUserAuthenticated.bind(this));
|
this._userVerifier.connect('ovirt-user-authenticated', this._onOVirtUserAuthenticated.bind(this));
|
||||||
this.smartcardDetected = this._userVerifier.smartcardDetected;
|
this.smartcardDetected = this._userVerifier.smartcardDetected;
|
||||||
|
|
||||||
this.connect('next', () => {
|
|
||||||
this.updateSensitivity(false);
|
|
||||||
this.startSpinning();
|
|
||||||
if (this._queryingService)
|
|
||||||
this._userVerifier.answerQuery(this._queryingService, this._entry.text);
|
|
||||||
else
|
|
||||||
this._preemptiveAnswer = this._entry.text;
|
|
||||||
});
|
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
|
|
||||||
this._userWell = new St.Bin({
|
this._userWell = new St.Bin({
|
||||||
@ -91,67 +81,35 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
y_expand: true,
|
y_expand: true,
|
||||||
});
|
});
|
||||||
this.add_child(this._userWell);
|
this.add_child(this._userWell);
|
||||||
this._label = new St.Label({
|
|
||||||
style_class: 'login-dialog-prompt-label',
|
this._hasCancelButton = this._mode === AuthPromptMode.UNLOCK_OR_LOG_IN;
|
||||||
x_expand: false,
|
|
||||||
y_expand: true,
|
this._initEntryRow();
|
||||||
|
|
||||||
|
let capsLockPlaceholder = new St.Label();
|
||||||
|
this.add_child(capsLockPlaceholder);
|
||||||
|
|
||||||
|
this._capsLockWarningLabel = new ShellEntry.CapsLockWarning({
|
||||||
|
x_expand: true,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.add_child(this._label);
|
|
||||||
|
|
||||||
let entryParams = {
|
|
||||||
style_class: 'login-dialog-prompt-entry',
|
|
||||||
can_focus: true,
|
|
||||||
x_expand: false,
|
|
||||||
y_expand: true,
|
|
||||||
};
|
|
||||||
|
|
||||||
this._entry = null;
|
|
||||||
|
|
||||||
this._textEntry = new St.Entry(entryParams);
|
|
||||||
ShellEntry.addContextMenu(this._textEntry, { actionMode: Shell.ActionMode.NONE });
|
|
||||||
|
|
||||||
this._passwordEntry = new St.PasswordEntry(entryParams);
|
|
||||||
ShellEntry.addContextMenu(this._passwordEntry, { actionMode: Shell.ActionMode.NONE });
|
|
||||||
|
|
||||||
this._entry = this._passwordEntry;
|
|
||||||
this.add_child(this._entry);
|
|
||||||
|
|
||||||
this._entry.grab_key_focus();
|
|
||||||
|
|
||||||
this._capsLockWarningLabel = new ShellEntry.CapsLockWarning();
|
|
||||||
this.add_child(this._capsLockWarningLabel);
|
this.add_child(this._capsLockWarningLabel);
|
||||||
|
|
||||||
|
this._capsLockWarningLabel.bind_property('visible',
|
||||||
|
capsLockPlaceholder, 'visible',
|
||||||
|
GObject.BindingFlags.SYNC_CREATE | GObject.BindingFlags.INVERT_BOOLEAN);
|
||||||
|
|
||||||
this._message = new St.Label({
|
this._message = new St.Label({
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
styleClass: 'login-dialog-message',
|
styleClass: 'login-dialog-message',
|
||||||
x_expand: false,
|
|
||||||
y_expand: true,
|
y_expand: true,
|
||||||
|
x_expand: true,
|
||||||
y_align: Clutter.ActorAlign.START,
|
y_align: Clutter.ActorAlign.START,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
});
|
});
|
||||||
this._message.clutter_text.line_wrap = true;
|
this._message.clutter_text.line_wrap = true;
|
||||||
this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
this.add_child(this._message);
|
this.add_child(this._message);
|
||||||
|
|
||||||
this._buttonBox = new St.BoxLayout({
|
|
||||||
style_class: 'login-dialog-button-box',
|
|
||||||
vertical: false,
|
|
||||||
y_align: Clutter.ActorAlign.END,
|
|
||||||
});
|
|
||||||
this.add_child(this._buttonBox);
|
|
||||||
|
|
||||||
this._defaultButtonWell = new St.Widget({
|
|
||||||
layout_manager: new Clutter.BinLayout(),
|
|
||||||
x_align: Clutter.ActorAlign.END,
|
|
||||||
y_align: Clutter.ActorAlign.CENTER,
|
|
||||||
});
|
|
||||||
|
|
||||||
this._initButtons();
|
|
||||||
|
|
||||||
this._spinner = new Animation.Spinner(DEFAULT_BUTTON_WELL_ICON_SIZE);
|
|
||||||
this._spinner.opacity = 0;
|
|
||||||
this._spinner.show();
|
|
||||||
this._defaultButtonWell.add_child(this._spinner);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDestroy() {
|
_onDestroy() {
|
||||||
@ -165,54 +123,95 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_initButtons() {
|
_initEntryRow() {
|
||||||
|
this._mainBox = new St.BoxLayout({
|
||||||
|
style_class: 'login-dialog-button-box',
|
||||||
|
vertical: false,
|
||||||
|
});
|
||||||
|
this.add_child(this._mainBox);
|
||||||
|
|
||||||
this.cancelButton = new St.Button({
|
this.cancelButton = new St.Button({
|
||||||
style_class: 'modal-dialog-button button',
|
style_class: 'modal-dialog-button button cancel-button',
|
||||||
|
accessible_name: _('Cancel'),
|
||||||
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
|
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
|
||||||
reactive: true,
|
reactive: this._hasCancelButton,
|
||||||
can_focus: true,
|
can_focus: this._hasCancelButton,
|
||||||
label: _("Cancel"),
|
|
||||||
x_expand: true,
|
|
||||||
x_align: Clutter.ActorAlign.START,
|
x_align: Clutter.ActorAlign.START,
|
||||||
y_align: Clutter.ActorAlign.END,
|
y_align: Clutter.ActorAlign.CENTER,
|
||||||
|
child: new St.Icon({ icon_name: 'go-previous-symbolic' }),
|
||||||
});
|
});
|
||||||
this.cancelButton.connect('clicked', () => this.cancel());
|
if (this._hasCancelButton)
|
||||||
this._buttonBox.add_child(this.cancelButton);
|
this.cancelButton.connect('clicked', () => this.cancel());
|
||||||
|
else
|
||||||
|
this.cancelButton.opacity = 0;
|
||||||
|
this._mainBox.add_child(this.cancelButton);
|
||||||
|
|
||||||
this._buttonBox.add_child(this._defaultButtonWell);
|
let entryParams = {
|
||||||
this.nextButton = new St.Button({
|
style_class: 'login-dialog-prompt-entry',
|
||||||
style_class: 'modal-dialog-button button',
|
|
||||||
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
|
|
||||||
reactive: true,
|
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
label: _("Next"),
|
x_expand: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
this._entry = null;
|
||||||
|
|
||||||
|
this._textEntry = new St.Entry(entryParams);
|
||||||
|
ShellEntry.addContextMenu(this._textEntry, { actionMode: Shell.ActionMode.NONE });
|
||||||
|
|
||||||
|
this._passwordEntry = new St.PasswordEntry(entryParams);
|
||||||
|
ShellEntry.addContextMenu(this._passwordEntry, { actionMode: Shell.ActionMode.NONE });
|
||||||
|
|
||||||
|
this._entry = this._passwordEntry;
|
||||||
|
this._mainBox.add_child(this._entry);
|
||||||
|
this._entry.grab_key_focus();
|
||||||
|
|
||||||
|
[this._textEntry, this._passwordEntry].forEach(entry => {
|
||||||
|
entry.clutter_text.connect('text-changed', () => {
|
||||||
|
if (!this._userVerifier.hasPendingMessages)
|
||||||
|
this._fadeOutMessage();
|
||||||
|
});
|
||||||
|
|
||||||
|
entry.clutter_text.connect('activate', () => {
|
||||||
|
let shouldSpin = entry === this._passwordEntry;
|
||||||
|
if (entry.reactive)
|
||||||
|
this._activateNext(shouldSpin);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
this._defaultButtonWell = new St.Widget({
|
||||||
|
layout_manager: new Clutter.BinLayout(),
|
||||||
x_align: Clutter.ActorAlign.END,
|
x_align: Clutter.ActorAlign.END,
|
||||||
y_align: Clutter.ActorAlign.END,
|
y_align: Clutter.ActorAlign.CENTER,
|
||||||
});
|
});
|
||||||
this.nextButton.connect('clicked', () => this.emit('next'));
|
this._defaultButtonWell.add_constraint(new Clutter.BindConstraint({
|
||||||
this.nextButton.add_style_pseudo_class('default');
|
source: this.cancelButton,
|
||||||
this._buttonBox.add_child(this.nextButton);
|
coordinate: Clutter.BindCoordinate.SIZE,
|
||||||
|
}));
|
||||||
|
this._mainBox.add_child(this._defaultButtonWell);
|
||||||
|
|
||||||
this._updateNextButtonSensitivity(this._entry.text.length > 0);
|
this._spinner = new Animation.Spinner(DEFAULT_BUTTON_WELL_ICON_SIZE);
|
||||||
|
this._defaultButtonWell.add_child(this._spinner);
|
||||||
|
}
|
||||||
|
|
||||||
this._entry.clutter_text.connect('text-changed', () => {
|
_activateNext(shouldSpin) {
|
||||||
if (!this._userVerifier.hasPendingMessages)
|
this.updateSensitivity(false);
|
||||||
this._fadeOutMessage();
|
|
||||||
|
|
||||||
this._updateNextButtonSensitivity(this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING);
|
if (shouldSpin)
|
||||||
});
|
this.startSpinning();
|
||||||
this._entry.clutter_text.connect('activate', () => {
|
|
||||||
if (this.nextButton.reactive)
|
if (this._queryingService)
|
||||||
this.emit('next');
|
this._userVerifier.answerQuery(this._queryingService, this._entry.text);
|
||||||
});
|
else
|
||||||
|
this._preemptiveAnswer = this._entry.text;
|
||||||
|
|
||||||
|
this.emit('next');
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateEntry(secret) {
|
_updateEntry(secret) {
|
||||||
if (secret && (this._entry != this._passwordEntry)) {
|
if (secret && this._entry !== this._passwordEntry) {
|
||||||
this.replace_child(this._entry, this._passwordEntry);
|
this._mainBox.replace_child(this._entry, this._passwordEntry);
|
||||||
this._entry = this._passwordEntry;
|
this._entry = this._passwordEntry;
|
||||||
} else if (!secret && (this._entry != this._textEntry)) {
|
} else if (!secret && this._entry !== this._textEntry) {
|
||||||
this.replace_child(this._entry, this._textEntry);
|
this._mainBox.replace_child(this._entry, this._textEntry);
|
||||||
this._entry = this._textEntry;
|
this._entry = this._textEntry;
|
||||||
}
|
}
|
||||||
this._capsLockWarningLabel.visible = secret;
|
this._capsLockWarningLabel.visible = secret;
|
||||||
@ -230,16 +229,14 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._updateEntry(secret);
|
this._updateEntry(secret);
|
||||||
this.setQuestion(question);
|
|
||||||
|
|
||||||
if (secret) {
|
// Hack: The question string comes directly from PAM, if it's "Password:"
|
||||||
if (this._userVerifier.reauthenticating)
|
// we replace it with our own to allow localization, if it's something
|
||||||
this.nextButton.label = _("Unlock");
|
// else we remove the last colon and any trailing or leading spaces.
|
||||||
else
|
if (question === 'Password:' || question === 'Password: ')
|
||||||
this.nextButton.label = C_("button", "Sign In");
|
this.setQuestion(_('Password'));
|
||||||
} else {
|
else
|
||||||
this.nextButton.label = _("Next");
|
this.setQuestion(question.replace(/: *$/, '').trim());
|
||||||
}
|
|
||||||
|
|
||||||
this.updateSensitivity(true);
|
this.updateSensitivity(true);
|
||||||
this.emit('prompted');
|
this.emit('prompted');
|
||||||
@ -282,17 +279,14 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
this.setActorInDefaultButtonWell(null);
|
this.setActorInDefaultButtonWell(null);
|
||||||
this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
|
this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
|
||||||
|
|
||||||
Util.wiggle(this._entry, {
|
Util.wiggle(this._entry);
|
||||||
offset: WIGGLE_OFFSET,
|
|
||||||
duration: WIGGLE_DURATION,
|
|
||||||
wiggleCount: N_WIGGLES,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_onVerificationComplete() {
|
_onVerificationComplete() {
|
||||||
this.setActorInDefaultButtonWell(null);
|
this.setActorInDefaultButtonWell(null);
|
||||||
this.verificationStatus = AuthPromptStatus.VERIFICATION_SUCCEEDED;
|
this.verificationStatus = AuthPromptStatus.VERIFICATION_SUCCEEDED;
|
||||||
this.cancelButton.reactive = false;
|
this.cancelButton.reactive = false;
|
||||||
|
this.cancelButton.can_focus = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onReset() {
|
_onReset() {
|
||||||
@ -300,10 +294,6 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
this.reset();
|
this.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
addActorToDefaultButtonWell(actor) {
|
|
||||||
this._defaultButtonWell.add_child(actor);
|
|
||||||
}
|
|
||||||
|
|
||||||
setActorInDefaultButtonWell(actor, animate) {
|
setActorInDefaultButtonWell(actor, animate) {
|
||||||
if (!this._defaultButtonWellActor &&
|
if (!this._defaultButtonWellActor &&
|
||||||
!actor)
|
!actor)
|
||||||
@ -383,11 +373,9 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
setQuestion(question) {
|
setQuestion(question) {
|
||||||
this._label.set_text(question);
|
this._entry.hint_text = question;
|
||||||
|
|
||||||
this._label.show();
|
|
||||||
this._entry.show();
|
this._entry.show();
|
||||||
|
|
||||||
this._entry.grab_key_focus();
|
this._entry.grab_key_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -435,13 +423,7 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateNextButtonSensitivity(sensitive) {
|
|
||||||
this.nextButton.reactive = sensitive;
|
|
||||||
this.nextButton.can_focus = sensitive;
|
|
||||||
}
|
|
||||||
|
|
||||||
updateSensitivity(sensitive) {
|
updateSensitivity(sensitive) {
|
||||||
this._updateNextButtonSensitivity(sensitive && (this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING));
|
|
||||||
this._entry.reactive = sensitive;
|
this._entry.reactive = sensitive;
|
||||||
this._entry.clutter_text.editable = sensitive;
|
this._entry.clutter_text.editable = sensitive;
|
||||||
}
|
}
|
||||||
@ -462,18 +444,18 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
if (oldChild)
|
if (oldChild)
|
||||||
oldChild.destroy();
|
oldChild.destroy();
|
||||||
|
|
||||||
if (user) {
|
let userWidget = new UserWidget.UserWidget(user, Clutter.Orientation.VERTICAL);
|
||||||
let userWidget = new UserWidget.UserWidget(user);
|
this._userWell.set_child(userWidget);
|
||||||
userWidget.x_align = Clutter.ActorAlign.START;
|
|
||||||
this._userWell.set_child(userWidget);
|
if (!user)
|
||||||
}
|
this._updateEntry(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
let oldStatus = this.verificationStatus;
|
let oldStatus = this.verificationStatus;
|
||||||
this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
|
this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
|
||||||
this.cancelButton.reactive = true;
|
this.cancelButton.reactive = this._hasCancelButton;
|
||||||
this.nextButton.label = _("Next");
|
this.cancelButton.can_focus = this._hasCancelButton;
|
||||||
this._preemptiveAnswer = null;
|
this._preemptiveAnswer = null;
|
||||||
|
|
||||||
if (this._userVerifier)
|
if (this._userVerifier)
|
||||||
@ -483,6 +465,7 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
this.clear();
|
this.clear();
|
||||||
this._message.opacity = 0;
|
this._message.opacity = 0;
|
||||||
this.setUser(null);
|
this.setUser(null);
|
||||||
|
this._updateEntry(true);
|
||||||
this.stopSpinning();
|
this.stopSpinning();
|
||||||
|
|
||||||
if (oldStatus == AuthPromptStatus.VERIFICATION_FAILED)
|
if (oldStatus == AuthPromptStatus.VERIFICATION_FAILED)
|
||||||
|
@ -36,7 +36,6 @@ const _FADE_ANIMATION_TIME = 250;
|
|||||||
const _SCROLL_ANIMATION_TIME = 500;
|
const _SCROLL_ANIMATION_TIME = 500;
|
||||||
const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0;
|
const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0;
|
||||||
const _LOGO_ICON_HEIGHT = 48;
|
const _LOGO_ICON_HEIGHT = 48;
|
||||||
const _MAX_BOTTOM_MENU_ITEMS = 5;
|
|
||||||
|
|
||||||
var UserListItem = GObject.registerClass({
|
var UserListItem = GObject.registerClass({
|
||||||
Signals: { 'activate': {} },
|
Signals: { 'activate': {} },
|
||||||
@ -312,28 +311,21 @@ var SessionMenuButton = GObject.registerClass({
|
|||||||
_init() {
|
_init() {
|
||||||
let gearIcon = new St.Icon({ icon_name: 'emblem-system-symbolic' });
|
let gearIcon = new St.Icon({ icon_name: 'emblem-system-symbolic' });
|
||||||
let button = new St.Button({
|
let button = new St.Button({
|
||||||
style_class: 'login-dialog-session-list-button',
|
style_class: 'modal-dialog-button button login-dialog-session-list-button',
|
||||||
reactive: true,
|
reactive: true,
|
||||||
track_hover: true,
|
track_hover: true,
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
accessible_name: _("Choose Session"),
|
accessible_name: _("Choose Session"),
|
||||||
accessible_role: Atk.Role.MENU,
|
accessible_role: Atk.Role.MENU,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
|
y_align: Clutter.ActorAlign.CENTER,
|
||||||
child: gearIcon,
|
child: gearIcon,
|
||||||
});
|
});
|
||||||
|
|
||||||
super._init({ child: button });
|
super._init({ child: button });
|
||||||
this._button = button;
|
this._button = button;
|
||||||
|
|
||||||
let side = St.Side.TOP;
|
this._menu = new PopupMenu.PopupMenu(this._button, 0, St.Side.BOTTOM);
|
||||||
let align = 0;
|
|
||||||
if (Gdm.get_session_ids().length > _MAX_BOTTOM_MENU_ITEMS) {
|
|
||||||
if (this.text_direction == Clutter.TextDirection.RTL)
|
|
||||||
side = St.Side.RIGHT;
|
|
||||||
else
|
|
||||||
side = St.Side.LEFT;
|
|
||||||
align = 0.5;
|
|
||||||
}
|
|
||||||
this._menu = new PopupMenu.PopupMenu(this._button, align, side);
|
|
||||||
Main.uiGroup.add_actor(this._menu.actor);
|
Main.uiGroup.add_actor(this._menu.actor);
|
||||||
this._menu.actor.hide();
|
this._menu.actor.hide();
|
||||||
|
|
||||||
@ -358,6 +350,7 @@ var SessionMenuButton = GObject.registerClass({
|
|||||||
updateSensitivity(sensitive) {
|
updateSensitivity(sensitive) {
|
||||||
this._button.reactive = sensitive;
|
this._button.reactive = sensitive;
|
||||||
this._button.can_focus = sensitive;
|
this._button.can_focus = sensitive;
|
||||||
|
this.opacity = sensitive ? 255 : 0;
|
||||||
this._menu.close(BoxPointer.PopupAnimation.NONE);
|
this._menu.close(BoxPointer.PopupAnimation.NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,7 +402,10 @@ var SessionMenuButton = GObject.registerClass({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var LoginDialog = GObject.registerClass({
|
var LoginDialog = GObject.registerClass({
|
||||||
Signals: { 'failed': {} },
|
Signals: {
|
||||||
|
'failed': {},
|
||||||
|
'wake-up-screen': {},
|
||||||
|
},
|
||||||
}, class LoginDialog extends St.Widget {
|
}, class LoginDialog extends St.Widget {
|
||||||
_init(parentActor) {
|
_init(parentActor) {
|
||||||
super._init({ style_class: 'login-dialog', visible: false });
|
super._init({ style_class: 'login-dialog', visible: false });
|
||||||
@ -425,13 +421,13 @@ var LoginDialog = GObject.registerClass({
|
|||||||
|
|
||||||
this._settings = new Gio.Settings({ schema_id: GdmUtil.LOGIN_SCREEN_SCHEMA });
|
this._settings = new Gio.Settings({ schema_id: GdmUtil.LOGIN_SCREEN_SCHEMA });
|
||||||
|
|
||||||
this._settings.connect(`changed::${GdmUtil.BANNER_MESSAGE_KEY}`,
|
this._settings.connect('changed::%s'.format(GdmUtil.BANNER_MESSAGE_KEY),
|
||||||
this._updateBanner.bind(this));
|
this._updateBanner.bind(this));
|
||||||
this._settings.connect(`changed::${GdmUtil.BANNER_MESSAGE_TEXT_KEY}`,
|
this._settings.connect('changed::%s'.format(GdmUtil.BANNER_MESSAGE_TEXT_KEY),
|
||||||
this._updateBanner.bind(this));
|
this._updateBanner.bind(this));
|
||||||
this._settings.connect(`changed::${GdmUtil.DISABLE_USER_LIST_KEY}`,
|
this._settings.connect('changed::%s'.format(GdmUtil.DISABLE_USER_LIST_KEY),
|
||||||
this._updateDisableUserList.bind(this));
|
this._updateDisableUserList.bind(this));
|
||||||
this._settings.connect(`changed::${GdmUtil.LOGO_KEY}`,
|
this._settings.connect('changed::%s'.format(GdmUtil.LOGO_KEY),
|
||||||
this._updateLogo.bind(this));
|
this._updateLogo.bind(this));
|
||||||
|
|
||||||
this._textureCache = St.TextureCache.get_default();
|
this._textureCache = St.TextureCache.get_default();
|
||||||
@ -460,7 +456,6 @@ var LoginDialog = GObject.registerClass({
|
|||||||
let notListedLabel = new St.Label({
|
let notListedLabel = new St.Label({
|
||||||
text: _("Not listed?"),
|
text: _("Not listed?"),
|
||||||
style_class: 'login-dialog-not-listed-label',
|
style_class: 'login-dialog-not-listed-label',
|
||||||
x_align: Clutter.ActorAlign.START,
|
|
||||||
});
|
});
|
||||||
this._notListedButton = new St.Button({
|
this._notListedButton = new St.Button({
|
||||||
style_class: 'login-dialog-not-listed-button',
|
style_class: 'login-dialog-not-listed-button',
|
||||||
@ -468,6 +463,7 @@ var LoginDialog = GObject.registerClass({
|
|||||||
can_focus: true,
|
can_focus: true,
|
||||||
child: notListedLabel,
|
child: notListedLabel,
|
||||||
reactive: true,
|
reactive: true,
|
||||||
|
x_align: Clutter.ActorAlign.START,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._notListedButton.connect('clicked', this._hideUserListAskForUsernameAndBeginVerification.bind(this));
|
this._notListedButton.connect('clicked', this._hideUserListAskForUsernameAndBeginVerification.bind(this));
|
||||||
@ -492,6 +488,15 @@ var LoginDialog = GObject.registerClass({
|
|||||||
bannerBox.add_child(this._bannerLabel);
|
bannerBox.add_child(this._bannerLabel);
|
||||||
this._updateBanner();
|
this._updateBanner();
|
||||||
|
|
||||||
|
this._sessionMenuButton = new SessionMenuButton();
|
||||||
|
this._sessionMenuButton.connect('session-activated',
|
||||||
|
(list, sessionId) => {
|
||||||
|
this._greeter.call_select_session_sync(sessionId, null);
|
||||||
|
});
|
||||||
|
this._sessionMenuButton.opacity = 0;
|
||||||
|
this._sessionMenuButton.show();
|
||||||
|
this.add_child(this._sessionMenuButton);
|
||||||
|
|
||||||
this._logoBin = new St.Widget({ style_class: 'login-dialog-logo-bin',
|
this._logoBin = new St.Widget({ style_class: 'login-dialog-logo-bin',
|
||||||
x_align: Clutter.ActorAlign.CENTER,
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
y_align: Clutter.ActorAlign.END });
|
y_align: Clutter.ActorAlign.END });
|
||||||
@ -505,16 +510,6 @@ var LoginDialog = GObject.registerClass({
|
|||||||
this._onUserListActivated(item);
|
this._onUserListActivated(item);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
this._sessionMenuButton = new SessionMenuButton();
|
|
||||||
this._sessionMenuButton.connect('session-activated',
|
|
||||||
(list, sessionId) => {
|
|
||||||
this._greeter.call_select_session_sync(sessionId, null);
|
|
||||||
});
|
|
||||||
this._sessionMenuButton.opacity = 0;
|
|
||||||
this._sessionMenuButton.show();
|
|
||||||
this._authPrompt.addActorToDefaultButtonWell(this._sessionMenuButton);
|
|
||||||
|
|
||||||
this._disableUserList = undefined;
|
this._disableUserList = undefined;
|
||||||
this._userListLoaded = false;
|
this._userListLoaded = false;
|
||||||
|
|
||||||
@ -559,6 +554,23 @@ var LoginDialog = GObject.registerClass({
|
|||||||
return actorBox;
|
return actorBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_getSessionMenuButtonAllocation(dialogBox) {
|
||||||
|
let actorBox = new Clutter.ActorBox();
|
||||||
|
|
||||||
|
let [, , natWidth, natHeight] = this._sessionMenuButton.get_preferred_size();
|
||||||
|
|
||||||
|
if (this.get_text_direction() === Clutter.TextDirection.RTL)
|
||||||
|
actorBox.x1 = dialogBox.x1 + natWidth;
|
||||||
|
else
|
||||||
|
actorBox.x1 = dialogBox.x2 - (natWidth * 2);
|
||||||
|
|
||||||
|
actorBox.y1 = dialogBox.y2 - (natHeight * 2);
|
||||||
|
actorBox.x2 = actorBox.x1 + natWidth;
|
||||||
|
actorBox.y2 = actorBox.y1 + natHeight;
|
||||||
|
|
||||||
|
return actorBox;
|
||||||
|
}
|
||||||
|
|
||||||
_getCenterActorAllocation(dialogBox, actor) {
|
_getCenterActorAllocation(dialogBox, actor) {
|
||||||
let actorBox = new Clutter.ActorBox();
|
let actorBox = new Clutter.ActorBox();
|
||||||
|
|
||||||
@ -615,6 +627,10 @@ var LoginDialog = GObject.registerClass({
|
|||||||
logoHeight = logoAllocation.y2 - logoAllocation.y1;
|
logoHeight = logoAllocation.y2 - logoAllocation.y1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let sessionMenuButtonAllocation = null;
|
||||||
|
if (this._sessionMenuButton.visible)
|
||||||
|
sessionMenuButtonAllocation = this._getSessionMenuButtonAllocation(dialogBox);
|
||||||
|
|
||||||
// Then figure out if we're overly constrained and need to
|
// Then figure out if we're overly constrained and need to
|
||||||
// try a different layout, or if we have what extra space we
|
// try a different layout, or if we have what extra space we
|
||||||
// can hand out
|
// can hand out
|
||||||
@ -713,6 +729,9 @@ var LoginDialog = GObject.registerClass({
|
|||||||
|
|
||||||
if (logoAllocation)
|
if (logoAllocation)
|
||||||
this._logoBin.allocate(logoAllocation, flags);
|
this._logoBin.allocate(logoAllocation, flags);
|
||||||
|
|
||||||
|
if (sessionMenuButtonAllocation)
|
||||||
|
this._sessionMenuButton.allocate(sessionMenuButtonAllocation, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ensureUserListLoaded() {
|
_ensureUserListLoaded() {
|
||||||
@ -808,12 +827,10 @@ var LoginDialog = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onPrompted() {
|
_onPrompted() {
|
||||||
if (this._shouldShowSessionMenuButton()) {
|
const showSessionMenu = this._shouldShowSessionMenuButton();
|
||||||
this._sessionMenuButton.updateSensitivity(true);
|
|
||||||
this._authPrompt.setActorInDefaultButtonWell(this._sessionMenuButton);
|
this._sessionMenuButton.updateSensitivity(showSessionMenu);
|
||||||
} else {
|
this._sessionMenuButton.visible = showSessionMenu;
|
||||||
this._sessionMenuButton.updateSensitivity(false);
|
|
||||||
}
|
|
||||||
this._showPrompt();
|
this._showPrompt();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -896,7 +913,8 @@ var LoginDialog = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_askForUsernameAndBeginVerification() {
|
_askForUsernameAndBeginVerification() {
|
||||||
this._authPrompt.setQuestion(_("Username: "));
|
this._authPrompt.setUser(null);
|
||||||
|
this._authPrompt.setQuestion(_('Username'));
|
||||||
|
|
||||||
this._showRealmLoginHint(this._realmManager.loginFormat);
|
this._showRealmLoginHint(this._realmManager.loginFormat);
|
||||||
|
|
||||||
@ -910,7 +928,6 @@ var LoginDialog = GObject.registerClass({
|
|||||||
let answer = this._authPrompt.getAnswer();
|
let answer = this._authPrompt.getAnswer();
|
||||||
this._user = this._userManager.get_user(answer);
|
this._user = this._userManager.get_user(answer);
|
||||||
this._authPrompt.clear();
|
this._authPrompt.clear();
|
||||||
this._authPrompt.startSpinning();
|
|
||||||
this._authPrompt.begin({ userName: answer });
|
this._authPrompt.begin({ userName: answer });
|
||||||
this._updateCancelButton();
|
this._updateCancelButton();
|
||||||
});
|
});
|
||||||
@ -1122,6 +1139,7 @@ var LoginDialog = GObject.registerClass({
|
|||||||
this._authPrompt.hide();
|
this._authPrompt.hide();
|
||||||
this._hideBannerView();
|
this._hideBannerView();
|
||||||
this._sessionMenuButton.close();
|
this._sessionMenuButton.close();
|
||||||
|
this._sessionMenuButton.hide();
|
||||||
this._setUserListExpanded(true);
|
this._setUserListExpanded(true);
|
||||||
this._notListedButton.show();
|
this._notListedButton.show();
|
||||||
this._userList.grab_key_focus();
|
this._userList.grab_key_focus();
|
||||||
@ -1225,13 +1243,18 @@ var LoginDialog = GObject.registerClass({
|
|||||||
return GLib.SOURCE_REMOVE;
|
return GLib.SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
activate() {
|
||||||
|
this._userList.grab_key_focus();
|
||||||
|
this.show();
|
||||||
|
}
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
Main.ctrlAltTabManager.addGroup(this,
|
Main.ctrlAltTabManager.addGroup(this,
|
||||||
_("Login Window"),
|
_("Login Window"),
|
||||||
'dialog-password-symbolic',
|
'dialog-password-symbolic',
|
||||||
{ sortGroup: CtrlAltTab.SortGroup.MIDDLE });
|
{ sortGroup: CtrlAltTab.SortGroup.MIDDLE });
|
||||||
this._userList.grab_key_focus();
|
this.activate();
|
||||||
this.show();
|
|
||||||
this.opacity = 0;
|
this.opacity = 0;
|
||||||
|
|
||||||
Main.pushModal(this, { actionMode: Shell.ActionMode.LOGIN_SCREEN });
|
Main.pushModal(this, { actionMode: Shell.ActionMode.LOGIN_SCREEN });
|
||||||
|
@ -98,6 +98,7 @@
|
|||||||
<file>ui/shellEntry.js</file>
|
<file>ui/shellEntry.js</file>
|
||||||
<file>ui/shellMountOperation.js</file>
|
<file>ui/shellMountOperation.js</file>
|
||||||
<file>ui/slider.js</file>
|
<file>ui/slider.js</file>
|
||||||
|
<file>ui/swipeTracker.js</file>
|
||||||
<file>ui/switcherPopup.js</file>
|
<file>ui/switcherPopup.js</file>
|
||||||
<file>ui/switchMonitor.js</file>
|
<file>ui/switchMonitor.js</file>
|
||||||
<file>ui/tweener.js</file>
|
<file>ui/tweener.js</file>
|
||||||
|
@ -31,7 +31,15 @@ var ExtensionState = {
|
|||||||
UNINSTALLED: 99,
|
UNINSTALLED: 99,
|
||||||
};
|
};
|
||||||
|
|
||||||
const SERIALIZED_PROPERTIES = ['type', 'state', 'path', 'error', 'hasPrefs', 'canChange'];
|
const SERIALIZED_PROPERTIES = [
|
||||||
|
'type',
|
||||||
|
'state',
|
||||||
|
'path',
|
||||||
|
'error',
|
||||||
|
'hasPrefs',
|
||||||
|
'hasUpdate',
|
||||||
|
'canChange',
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* getCurrentExtension:
|
* getCurrentExtension:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* exported getIBusManager */
|
/* exported getIBusManager */
|
||||||
|
|
||||||
const { Gio, GLib, IBus } = imports.gi;
|
const { Gio, GLib, IBus, Meta } = imports.gi;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
const IBusCandidatePopup = imports.ui.ibusCandidatePopup;
|
const IBusCandidatePopup = imports.ui.ibusCandidatePopup;
|
||||||
@ -55,13 +55,18 @@ var IBusManager = class {
|
|||||||
this._ibus.set_watch_ibus_signal(true);
|
this._ibus.set_watch_ibus_signal(true);
|
||||||
this._ibus.connect('global-engine-changed', this._engineChanged.bind(this));
|
this._ibus.connect('global-engine-changed', this._engineChanged.bind(this));
|
||||||
|
|
||||||
this._spawn();
|
this._spawn(Meta.is_wayland_compositor() ? [] : ['--xim']);
|
||||||
}
|
}
|
||||||
|
|
||||||
_spawn(extraArgs = []) {
|
_spawn(extraArgs = []) {
|
||||||
try {
|
try {
|
||||||
let cmdLine = ['ibus-daemon', '--panel', 'disable', ...extraArgs];
|
let cmdLine = ['ibus-daemon', '--panel', 'disable', ...extraArgs];
|
||||||
Gio.Subprocess.new(cmdLine, Gio.SubprocessFlags.NONE);
|
let launcher = Gio.SubprocessLauncher.new(Gio.SubprocessFlags.NONE);
|
||||||
|
// Forward the right X11 Display for ibus-x11
|
||||||
|
let display = GLib.getenv('GNOME_SETUP_DISPLAY');
|
||||||
|
if (display)
|
||||||
|
launcher.setenv('DISPLAY', display, true);
|
||||||
|
launcher.launch(cmdLine);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log(`Failed to launch ibus-daemon: ${e.message}`);
|
log(`Failed to launch ibus-daemon: ${e.message}`);
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
/* exported IntrospectService */
|
/* exported IntrospectService */
|
||||||
const { Gio, GLib, Meta, Shell } = imports.gi;
|
const { Gio, GLib, Meta, Shell, St } = imports.gi;
|
||||||
|
|
||||||
const INTROSPECT_SCHEMA = 'org.gnome.shell';
|
const INTROSPECT_SCHEMA = 'org.gnome.shell';
|
||||||
const INTROSPECT_KEY = 'introspect';
|
const INTROSPECT_KEY = 'introspect';
|
||||||
const APP_WHITELIST = ['org.freedesktop.impl.portal.desktop.gtk'];
|
const APP_WHITELIST = ['org.freedesktop.impl.portal.desktop.gtk'];
|
||||||
|
|
||||||
|
const INTROSPECT_DBUS_API_VERSION = 2;
|
||||||
|
|
||||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||||
|
|
||||||
const IntrospectDBusIface = loadInterfaceXML('org.gnome.Shell.Introspect');
|
const IntrospectDBusIface = loadInterfaceXML('org.gnome.Shell.Introspect');
|
||||||
@ -22,6 +24,7 @@ var IntrospectService = class {
|
|||||||
this._runningApplicationsDirty = true;
|
this._runningApplicationsDirty = true;
|
||||||
this._activeApplication = null;
|
this._activeApplication = null;
|
||||||
this._activeApplicationDirty = true;
|
this._activeApplicationDirty = true;
|
||||||
|
this._animationsEnabled = true;
|
||||||
|
|
||||||
this._appSystem = Shell.AppSystem.get_default();
|
this._appSystem = Shell.AppSystem.get_default();
|
||||||
this._appSystem.connect('app-state-changed',
|
this._appSystem.connect('app-state-changed',
|
||||||
@ -30,7 +33,9 @@ var IntrospectService = class {
|
|||||||
this._syncRunningApplications();
|
this._syncRunningApplications();
|
||||||
});
|
});
|
||||||
|
|
||||||
this._settings = new Gio.Settings({ schema_id: INTROSPECT_SCHEMA });
|
this._introspectSettings = new Gio.Settings({
|
||||||
|
schema_id: INTROSPECT_SCHEMA,
|
||||||
|
});
|
||||||
|
|
||||||
let tracker = Shell.WindowTracker.get_default();
|
let tracker = Shell.WindowTracker.get_default();
|
||||||
tracker.connect('notify::focus-app',
|
tracker.connect('notify::focus-app',
|
||||||
@ -49,6 +54,11 @@ var IntrospectService = class {
|
|||||||
(conn, name, owner) => this._whitelistMap.set(name, owner),
|
(conn, name, owner) => this._whitelistMap.set(name, owner),
|
||||||
(conn, name) => this._whitelistMap.delete(name));
|
(conn, name) => this._whitelistMap.delete(name));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._settings = St.Settings.get();
|
||||||
|
this._settings.connect('notify::enable-animations',
|
||||||
|
this._syncAnimationsEnabled.bind(this));
|
||||||
|
this._syncAnimationsEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
_isStandaloneApp(app) {
|
_isStandaloneApp(app) {
|
||||||
@ -56,7 +66,7 @@ var IntrospectService = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_isIntrospectEnabled() {
|
_isIntrospectEnabled() {
|
||||||
return this._settings.get_boolean(INTROSPECT_KEY);
|
return this._introspectSettings.get_boolean(INTROSPECT_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
_isSenderWhitelisted(sender) {
|
_isSenderWhitelisted(sender) {
|
||||||
@ -119,9 +129,18 @@ var IntrospectService = class {
|
|||||||
type == Meta.WindowType.UTILITY;
|
type == Meta.WindowType.UTILITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_isInvocationAllowed(invocation) {
|
||||||
|
if (this._isIntrospectEnabled())
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (this._isSenderWhitelisted(invocation.get_sender()))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
GetRunningApplicationsAsync(params, invocation) {
|
GetRunningApplicationsAsync(params, invocation) {
|
||||||
if (!this._isIntrospectEnabled() &&
|
if (!this._isInvocationAllowed(invocation)) {
|
||||||
!this._isSenderWhitelisted(invocation.get_sender())) {
|
|
||||||
invocation.return_error_literal(Gio.DBusError,
|
invocation.return_error_literal(Gio.DBusError,
|
||||||
Gio.DBusError.ACCESS_DENIED,
|
Gio.DBusError.ACCESS_DENIED,
|
||||||
'App introspection not allowed');
|
'App introspection not allowed');
|
||||||
@ -136,8 +155,7 @@ var IntrospectService = class {
|
|||||||
let apps = this._appSystem.get_running();
|
let apps = this._appSystem.get_running();
|
||||||
let windowsList = {};
|
let windowsList = {};
|
||||||
|
|
||||||
if (!this._isIntrospectEnabled() &&
|
if (!this._isInvocationAllowed(invocation)) {
|
||||||
!this._isSenderWhitelisted(invocation.get_sender())) {
|
|
||||||
invocation.return_error_literal(Gio.DBusError,
|
invocation.return_error_literal(Gio.DBusError,
|
||||||
Gio.DBusError.ACCESS_DENIED,
|
Gio.DBusError.ACCESS_DENIED,
|
||||||
'App introspection not allowed');
|
'App introspection not allowed');
|
||||||
@ -181,4 +199,21 @@ var IntrospectService = class {
|
|||||||
}
|
}
|
||||||
invocation.return_value(new GLib.Variant('(a{ta{sv}})', [windowsList]));
|
invocation.return_value(new GLib.Variant('(a{ta{sv}})', [windowsList]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_syncAnimationsEnabled() {
|
||||||
|
let wasAnimationsEnabled = this._animationsEnabled;
|
||||||
|
this._animationsEnabled = this._settings.enable_animations;
|
||||||
|
if (wasAnimationsEnabled !== this._animationsEnabled) {
|
||||||
|
let variant = new GLib.Variant('b', this._animationsEnabled);
|
||||||
|
this._dbusImpl.emit_property_changed('AnimationsEnabled', variant);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
get AnimationsEnabled() {
|
||||||
|
return this._animationsEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
get version() {
|
||||||
|
return INTROSPECT_DBUS_API_VERSION;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
@ -89,7 +89,7 @@ const SystemActions = GObject.registerClass({
|
|||||||
name: C_("search-result", "Power Off"),
|
name: C_("search-result", "Power Off"),
|
||||||
iconName: 'system-shutdown-symbolic',
|
iconName: 'system-shutdown-symbolic',
|
||||||
// Translators: A list of keywords that match the power-off action, separated by semicolons
|
// Translators: A list of keywords that match the power-off action, separated by semicolons
|
||||||
keywords: _("power off;shutdown;reboot;restart").split(/[; ]/),
|
keywords: _('power off;shutdown;reboot;restart;halt;stop').split(/[; ]/),
|
||||||
available: false,
|
available: false,
|
||||||
});
|
});
|
||||||
this._actions.set(LOCK_SCREEN_ACTION_ID, {
|
this._actions.set(LOCK_SCREEN_ACTION_ID, {
|
||||||
@ -125,11 +125,10 @@ const SystemActions = GObject.registerClass({
|
|||||||
available: false,
|
available: false,
|
||||||
});
|
});
|
||||||
this._actions.set(LOCK_ORIENTATION_ACTION_ID, {
|
this._actions.set(LOCK_ORIENTATION_ACTION_ID, {
|
||||||
// Translators: The name of the lock orientation action in search
|
name: '',
|
||||||
name: C_("search-result", "Lock Orientation"),
|
|
||||||
iconName: '',
|
iconName: '',
|
||||||
// Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
// Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
||||||
keywords: _("lock orientation;screen;rotation").split(/[; ]/),
|
keywords: _("lock orientation;unlock orientation;screen;rotation").split(/[; ]/),
|
||||||
available: false,
|
available: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -152,26 +151,25 @@ const SystemActions = GObject.registerClass({
|
|||||||
this._userManager.connect('user-removed',
|
this._userManager.connect('user-removed',
|
||||||
() => this._updateMultiUser());
|
() => this._updateMultiUser());
|
||||||
|
|
||||||
this._lockdownSettings.connect(`changed::${DISABLE_USER_SWITCH_KEY}`,
|
this._lockdownSettings.connect('changed::%s'.format(DISABLE_USER_SWITCH_KEY),
|
||||||
() => this._updateSwitchUser());
|
() => this._updateSwitchUser());
|
||||||
this._lockdownSettings.connect(`changed::${DISABLE_LOG_OUT_KEY}`,
|
this._lockdownSettings.connect('changed::%s'.format(DISABLE_LOG_OUT_KEY),
|
||||||
() => this._updateLogout());
|
() => this._updateLogout());
|
||||||
global.settings.connect(`changed::${ALWAYS_SHOW_LOG_OUT_KEY}`,
|
global.settings.connect('changed::%s'.format(ALWAYS_SHOW_LOG_OUT_KEY),
|
||||||
() => this._updateLogout());
|
() => this._updateLogout());
|
||||||
|
|
||||||
this._lockdownSettings.connect(`changed::${DISABLE_LOCK_SCREEN_KEY}`,
|
this._lockdownSettings.connect('changed::%s'.format(DISABLE_LOCK_SCREEN_KEY),
|
||||||
() => this._updateLockScreen());
|
() => this._updateLockScreen());
|
||||||
|
|
||||||
this._lockdownSettings.connect(`changed::${DISABLE_LOG_OUT_KEY}`,
|
this._lockdownSettings.connect('changed::%s'.format(DISABLE_LOG_OUT_KEY),
|
||||||
() => this._updateHaveShutdown());
|
() => this._updateHaveShutdown());
|
||||||
|
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
|
|
||||||
this._orientationSettings.connect('changed::orientation-lock',
|
this._orientationSettings.connect('changed::orientation-lock', () => {
|
||||||
() => {
|
this._updateOrientationLock();
|
||||||
this._updateOrientationLock();
|
this._updateOrientationLockStatus();
|
||||||
this._updateOrientationLockIcon();
|
});
|
||||||
});
|
|
||||||
Main.layoutManager.connect('monitors-changed',
|
Main.layoutManager.connect('monitors-changed',
|
||||||
() => this._updateOrientationLock());
|
() => this._updateOrientationLock());
|
||||||
this._sensorProxy = new SensorProxy(Gio.DBus.system,
|
this._sensorProxy = new SensorProxy(Gio.DBus.system,
|
||||||
@ -190,7 +188,7 @@ const SystemActions = GObject.registerClass({
|
|||||||
this._updateOrientationLock();
|
this._updateOrientationLock();
|
||||||
});
|
});
|
||||||
this._updateOrientationLock();
|
this._updateOrientationLock();
|
||||||
this._updateOrientationLockIcon();
|
this._updateOrientationLockStatus();
|
||||||
|
|
||||||
Main.sessionMode.connect('updated', () => this._sessionUpdated());
|
Main.sessionMode.connect('updated', () => this._sessionUpdated());
|
||||||
this._sessionUpdated();
|
this._sessionUpdated();
|
||||||
@ -243,12 +241,21 @@ const SystemActions = GObject.registerClass({
|
|||||||
this.notify('can-lock-orientation');
|
this.notify('can-lock-orientation');
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateOrientationLockIcon() {
|
_updateOrientationLockStatus() {
|
||||||
let locked = this._orientationSettings.get_boolean('orientation-lock');
|
let locked = this._orientationSettings.get_boolean('orientation-lock');
|
||||||
|
let action = this._actions.get(LOCK_ORIENTATION_ACTION_ID);
|
||||||
|
|
||||||
|
// Translators: The name of the lock orientation action in search
|
||||||
|
// and in the system status menu
|
||||||
|
let name = locked
|
||||||
|
? C_('search-result', 'Unlock Screen Rotation')
|
||||||
|
: C_('search-result', 'Lock Screen Rotation');
|
||||||
let iconName = locked
|
let iconName = locked
|
||||||
? 'rotation-locked-symbolic'
|
? 'rotation-locked-symbolic'
|
||||||
: 'rotation-allowed-symbolic';
|
: 'rotation-allowed-symbolic';
|
||||||
this._actions.get(LOCK_ORIENTATION_ACTION_ID).iconName = iconName;
|
|
||||||
|
action.name = name;
|
||||||
|
action.iconName = iconName;
|
||||||
|
|
||||||
this.notify('orientation-lock-icon');
|
this.notify('orientation-lock-icon');
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,17 @@ const Params = imports.misc.params;
|
|||||||
|
|
||||||
var SCROLL_TIME = 100;
|
var SCROLL_TIME = 100;
|
||||||
|
|
||||||
|
const WIGGLE_OFFSET = 6;
|
||||||
|
const WIGGLE_DURATION = 65;
|
||||||
|
const N_WIGGLES = 3;
|
||||||
|
|
||||||
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
|
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
|
||||||
const _balancedParens = '\\([^\\s()<>]+\\)';
|
const _balancedParens = '\\([^\\s()<>]+\\)';
|
||||||
const _leadingJunk = '[\\s`(\\[{\'\\"<\u00AB\u201C\u2018]';
|
const _leadingJunk = '[\\s`(\\[{\'\\"<\u00AB\u201C\u2018]';
|
||||||
const _notTrailingJunk = '[^\\s`!()\\[\\]{};:\'\\".,<>?\u00AB\u00BB\u200E\u200F\u201C\u201D\u2018\u2019\u202A\u202C]';
|
const _notTrailingJunk = '[^\\s`!()\\[\\]{};:\'\\".,<>?\u00AB\u00BB\u200E\u200F\u201C\u201D\u2018\u2019\u202A\u202C]';
|
||||||
|
|
||||||
const _urlRegexp = new RegExp(
|
const _urlRegexp = new RegExp(
|
||||||
`(^|${_leadingJunk})` +
|
'(^|%s)'.format(_leadingJunk) +
|
||||||
'(' +
|
'(' +
|
||||||
'(?:' +
|
'(?:' +
|
||||||
'(?:http|https|ftp)://' + // scheme://
|
'(?:http|https|ftp)://' + // scheme://
|
||||||
@ -29,12 +33,12 @@ const _urlRegexp = new RegExp(
|
|||||||
'(?:' + // one or more:
|
'(?:' + // one or more:
|
||||||
'[^\\s()<>]+' + // run of non-space non-()
|
'[^\\s()<>]+' + // run of non-space non-()
|
||||||
'|' + // or
|
'|' + // or
|
||||||
`${_balancedParens}` + // balanced parens
|
'%s'.format(_balancedParens) + // balanced parens
|
||||||
')+' +
|
')+' +
|
||||||
'(?:' + // end with:
|
'(?:' + // end with:
|
||||||
`${_balancedParens}` + // balanced parens
|
'%s'.format(_balancedParens) + // balanced parens
|
||||||
'|' + // or
|
'|' + // or
|
||||||
`${_notTrailingJunk}` + // last non-junk char
|
'%s'.format(_notTrailingJunk) + // last non-junk char
|
||||||
')' +
|
')' +
|
||||||
')', 'gi');
|
')', 'gi');
|
||||||
|
|
||||||
@ -149,7 +153,7 @@ function trySpawnCommandLine(commandLine) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Replace "Error invoking GLib.shell_parse_argv: " with
|
// Replace "Error invoking GLib.shell_parse_argv: " with
|
||||||
// something nicer
|
// something nicer
|
||||||
err.message = err.message.replace(/[^:]*: /, `${_("Could not parse command:")}\n`);
|
err.message = err.message.replace(/[^:]*: /, '%s\n'.format(_('Could not parse command:')));
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -441,10 +445,13 @@ function ensureActorVisibleInScrollView(scrollView, actor) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function wiggle(actor, params) {
|
function wiggle(actor, params) {
|
||||||
|
if (!St.Settings.get().enable_animations)
|
||||||
|
return;
|
||||||
|
|
||||||
params = Params.parse(params, {
|
params = Params.parse(params, {
|
||||||
offset: 0,
|
offset: WIGGLE_OFFSET,
|
||||||
duration: 0,
|
duration: WIGGLE_DURATION,
|
||||||
wiggleCount: 0,
|
wiggleCount: N_WIGGLES,
|
||||||
});
|
});
|
||||||
actor.translation_x = 0;
|
actor.translation_x = 0;
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
/* exported main */
|
/* exported main */
|
||||||
|
imports.gi.versions.Gtk = '3.0';
|
||||||
|
|
||||||
const Format = imports.format;
|
const Format = imports.format;
|
||||||
const Gettext = imports.gettext;
|
const Gettext = imports.gettext;
|
||||||
const { Gio, GLib, GObject, Gtk, Pango, Soup, WebKit2: WebKit } = imports.gi;
|
const { Gio, GLib, GObject, Gtk, Pango, Soup, WebKit2: WebKit } = imports.gi;
|
||||||
@ -21,7 +23,6 @@ const PortalHelperSecurityLevel = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const CONNECTIVITY_CHECK_HOST = 'nmcheck.gnome.org';
|
const CONNECTIVITY_CHECK_HOST = 'nmcheck.gnome.org';
|
||||||
const CONNECTIVITY_CHECK_URI = `http://${CONNECTIVITY_CHECK_HOST}`;
|
|
||||||
const CONNECTIVITY_RECHECK_RATELIMIT_TIMEOUT = 30 * GLib.USEC_PER_SEC;
|
const CONNECTIVITY_RECHECK_RATELIMIT_TIMEOUT = 30 * GLib.USEC_PER_SEC;
|
||||||
|
|
||||||
const HelperDBusInterface = loadInterfaceXML('org.gnome.Shell.PortalHelper');
|
const HelperDBusInterface = loadInterfaceXML('org.gnome.Shell.PortalHelper');
|
||||||
@ -101,7 +102,7 @@ class PortalWindow extends Gtk.ApplicationWindow {
|
|||||||
this._headerBar.show();
|
this._headerBar.show();
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
url = CONNECTIVITY_CHECK_URI;
|
url = 'http://%s'.format(CONNECTIVITY_CHECK_HOST);
|
||||||
this._originalUrlWasGnome = true;
|
this._originalUrlWasGnome = true;
|
||||||
} else {
|
} else {
|
||||||
this._originalUrlWasGnome = false;
|
this._originalUrlWasGnome = false;
|
||||||
@ -116,6 +117,10 @@ class PortalWindow extends Gtk.ApplicationWindow {
|
|||||||
this._webContext = WebKit.WebContext.new_ephemeral();
|
this._webContext = WebKit.WebContext.new_ephemeral();
|
||||||
this._webContext.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER);
|
this._webContext.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER);
|
||||||
this._webContext.set_network_proxy_settings(WebKit.NetworkProxyMode.NO_PROXY, null);
|
this._webContext.set_network_proxy_settings(WebKit.NetworkProxyMode.NO_PROXY, null);
|
||||||
|
if (this._webContext.set_sandbox_enabled) {
|
||||||
|
// We have WebKitGTK 2.26 or newer.
|
||||||
|
this._webContext.set_sandbox_enabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
this._webView = WebKit.WebView.new_with_context(this._webContext);
|
this._webView = WebKit.WebView.new_with_context(this._webContext);
|
||||||
this._webView.connect('decide-policy', this._onDecidePolicy.bind(this));
|
this._webView.connect('decide-policy', this._onDecidePolicy.bind(this));
|
||||||
|
@ -7,5 +7,10 @@
|
|||||||
<file>misc/extensionUtils.js</file>
|
<file>misc/extensionUtils.js</file>
|
||||||
<file>misc/fileUtils.js</file>
|
<file>misc/fileUtils.js</file>
|
||||||
<file>misc/params.js</file>
|
<file>misc/params.js</file>
|
||||||
|
|
||||||
|
<file alias="css/application.css">extensionPrefs/css/application.css</file>
|
||||||
|
|
||||||
|
<file alias="ui/extension-row.ui">extensionPrefs/ui/extension-row.ui</file>
|
||||||
|
<file alias="ui/extensions-window.ui">extensionPrefs/ui/extensions-window.ui</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
</gresources>
|
</gresources>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* exported AccessDialogDBus */
|
/* exported AccessDialogDBus */
|
||||||
const { Clutter, Gio, GLib, GObject, Shell } = imports.gi;
|
const { Clutter, Gio, GLib, GObject, Shell, St } = imports.gi;
|
||||||
|
|
||||||
const CheckBox = imports.ui.checkBox;
|
const CheckBox = imports.ui.checkBox;
|
||||||
const Dialog = imports.ui.dialog;
|
const Dialog = imports.ui.dialog;
|
||||||
@ -18,7 +18,7 @@ var DialogResponse = {
|
|||||||
|
|
||||||
var AccessDialog = GObject.registerClass(
|
var AccessDialog = GObject.registerClass(
|
||||||
class AccessDialog extends ModalDialog.ModalDialog {
|
class AccessDialog extends ModalDialog.ModalDialog {
|
||||||
_init(invocation, handle, title, subtitle, body, options) {
|
_init(invocation, handle, title, description, body, options) {
|
||||||
super._init({ styleClass: 'access-dialog' });
|
super._init({ styleClass: 'access-dialog' });
|
||||||
|
|
||||||
this._invocation = invocation;
|
this._invocation = invocation;
|
||||||
@ -30,21 +30,17 @@ class AccessDialog extends ModalDialog.ModalDialog {
|
|||||||
for (let option in options)
|
for (let option in options)
|
||||||
options[option] = options[option].deep_unpack();
|
options[option] = options[option].deep_unpack();
|
||||||
|
|
||||||
this._buildLayout(title, subtitle, body, options);
|
this._buildLayout(title, description, body, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildLayout(title, subtitle, body, options) {
|
_buildLayout(title, description, body, options) {
|
||||||
// No support for non-modal system dialogs, so ignore the option
|
// No support for non-modal system dialogs, so ignore the option
|
||||||
// let modal = options['modal'] || true;
|
// let modal = options['modal'] || true;
|
||||||
let denyLabel = options['deny_label'] || _("Deny Access");
|
let denyLabel = options['deny_label'] || _("Deny Access");
|
||||||
let grantLabel = options['grant_label'] || _("Grant Access");
|
let grantLabel = options['grant_label'] || _("Grant Access");
|
||||||
let iconName = options['icon'] || null;
|
|
||||||
let choices = options['choices'] || [];
|
let choices = options['choices'] || [];
|
||||||
|
|
||||||
let contentParams = { title, subtitle, body };
|
let content = new Dialog.MessageDialogContent({ title, description });
|
||||||
if (iconName)
|
|
||||||
contentParams.icon = new Gio.ThemedIcon({ name: iconName });
|
|
||||||
let content = new Dialog.MessageDialogContent(contentParams);
|
|
||||||
this.contentLayout.add_actor(content);
|
this.contentLayout.add_actor(content);
|
||||||
|
|
||||||
this._choices = new Map();
|
this._choices = new Map();
|
||||||
@ -57,11 +53,17 @@ class AccessDialog extends ModalDialog.ModalDialog {
|
|||||||
let check = new CheckBox.CheckBox();
|
let check = new CheckBox.CheckBox();
|
||||||
check.getLabelActor().text = name;
|
check.getLabelActor().text = name;
|
||||||
check.checked = selected == "true";
|
check.checked = selected == "true";
|
||||||
content.insertBeforeBody(check);
|
content.add_child(check);
|
||||||
|
|
||||||
this._choices.set(id, check);
|
this._choices.set(id, check);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let bodyLabel = new St.Label({
|
||||||
|
text: body,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
|
});
|
||||||
|
content.add_child(bodyLabel);
|
||||||
|
|
||||||
this.addButton({ label: denyLabel,
|
this.addButton({ label: denyLabel,
|
||||||
action: () => {
|
action: () => {
|
||||||
this._sendResponse(DialogResponse.CANCEL);
|
this._sendResponse(DialogResponse.CANCEL);
|
||||||
@ -133,18 +135,18 @@ var AccessDialogDBus = class {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let [handle, appId, parentWindow_, title, subtitle, body, options] = params;
|
let [handle, appId, parentWindow_, title, description, body, options] = params;
|
||||||
// We probably want to use parentWindow and global.display.focus_window
|
// We probably want to use parentWindow and global.display.focus_window
|
||||||
// for this check in the future
|
// for this check in the future
|
||||||
if (appId && `${appId}.desktop` != this._windowTracker.focus_app.id) {
|
if (appId && '%s.desktop'.format(appId) != this._windowTracker.focus_app.id) {
|
||||||
invocation.return_error_literal(Gio.DBusError,
|
invocation.return_error_literal(Gio.DBusError,
|
||||||
Gio.DBusError.ACCESS_DENIED,
|
Gio.DBusError.ACCESS_DENIED,
|
||||||
'Only the focused app is allowed to show a system access dialog');
|
'Only the focused app is allowed to show a system access dialog');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let dialog = new AccessDialog(invocation, handle, title,
|
let dialog = new AccessDialog(
|
||||||
subtitle, body, options);
|
invocation, handle, title, description, body, options);
|
||||||
dialog.open();
|
dialog.open();
|
||||||
|
|
||||||
dialog.connect('closed', () => (this._accessDialog = null));
|
dialog.connect('closed', () => (this._accessDialog = null));
|
||||||
|
@ -64,9 +64,6 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
|
|
||||||
let apps = Shell.AppSystem.get_default().get_running();
|
let apps = Shell.AppSystem.get_default().get_running();
|
||||||
|
|
||||||
if (apps.length == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this._switcherList = new AppSwitcher(apps, this);
|
this._switcherList = new AppSwitcher(apps, this);
|
||||||
this._items = this._switcherList.icons;
|
this._items = this._switcherList.icons;
|
||||||
}
|
}
|
||||||
@ -178,7 +175,7 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
this._select(this._next());
|
this._select(this._next());
|
||||||
} else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS_BACKWARD) {
|
} else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS_BACKWARD) {
|
||||||
this._select(this._previous());
|
this._select(this._previous());
|
||||||
} else if (keysym === Clutter.KEY_q) {
|
} else if (keysym == Clutter.KEY_q || keysym === Clutter.KEY_Q) {
|
||||||
this._quitApplication(this._selectedIndex);
|
this._quitApplication(this._selectedIndex);
|
||||||
} else if (this._thumbnailsFocused) {
|
} else if (this._thumbnailsFocused) {
|
||||||
if (keysym === Clutter.KEY_Left)
|
if (keysym === Clutter.KEY_Left)
|
||||||
@ -187,7 +184,7 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
this._select(this._selectedIndex, this._nextWindow());
|
this._select(this._selectedIndex, this._nextWindow());
|
||||||
else if (keysym === Clutter.KEY_Up)
|
else if (keysym === Clutter.KEY_Up)
|
||||||
this._select(this._selectedIndex, null, true);
|
this._select(this._selectedIndex, null, true);
|
||||||
else if (keysym === Clutter.KEY_w || keysym === Clutter.KEY_F4)
|
else if (keysym === Clutter.KEY_w || keysym === Clutter.KEY_W || keysym === Clutter.KEY_F4)
|
||||||
this._closeAppWindow(this._selectedIndex, this._currentWindow);
|
this._closeAppWindow(this._selectedIndex, this._currentWindow);
|
||||||
else
|
else
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
@ -248,20 +245,20 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
this._select(n);
|
this._select(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
_windowActivated(thumbnailList, n) {
|
_windowActivated(thumbnailSwitcher, n) {
|
||||||
let appIcon = this._items[this._selectedIndex];
|
let appIcon = this._items[this._selectedIndex];
|
||||||
Main.activateWindow(appIcon.cachedWindows[n]);
|
Main.activateWindow(appIcon.cachedWindows[n]);
|
||||||
this.fadeAndDestroy();
|
this.fadeAndDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
_windowEntered(thumbnailList, n) {
|
_windowEntered(thumbnailSwitcher, n) {
|
||||||
if (!this.mouseActive)
|
if (!this.mouseActive)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._select(this._selectedIndex, n);
|
this._select(this._selectedIndex, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
_windowRemoved(thumbnailList, n) {
|
_windowRemoved(thumbnailSwitcher, n) {
|
||||||
let appIcon = this._items[this._selectedIndex];
|
let appIcon = this._items[this._selectedIndex];
|
||||||
if (!appIcon)
|
if (!appIcon)
|
||||||
return;
|
return;
|
||||||
@ -283,12 +280,10 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onDestroy() {
|
_onDestroy() {
|
||||||
super._onDestroy();
|
|
||||||
|
|
||||||
if (this._thumbnails)
|
|
||||||
this._destroyThumbnails();
|
|
||||||
if (this._thumbnailTimeoutId != 0)
|
if (this._thumbnailTimeoutId != 0)
|
||||||
GLib.source_remove(this._thumbnailTimeoutId);
|
GLib.source_remove(this._thumbnailTimeoutId);
|
||||||
|
|
||||||
|
super._onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -368,12 +363,11 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
this._thumbnails = null;
|
this._thumbnails = null;
|
||||||
if (this._switcherList._items[this._selectedIndex])
|
this._switcherList.removeAccessibleState(this._selectedIndex, Atk.StateType.EXPANDED);
|
||||||
this._switcherList._items[this._selectedIndex].remove_accessible_state(Atk.StateType.EXPANDED);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_createThumbnails() {
|
_createThumbnails() {
|
||||||
this._thumbnails = new ThumbnailList(this._items[this._selectedIndex].cachedWindows);
|
this._thumbnails = new ThumbnailSwitcher(this._items[this._selectedIndex].cachedWindows);
|
||||||
this._thumbnails.connect('item-activated', this._windowActivated.bind(this));
|
this._thumbnails.connect('item-activated', this._windowActivated.bind(this));
|
||||||
this._thumbnails.connect('item-entered', this._windowEntered.bind(this));
|
this._thumbnails.connect('item-entered', this._windowEntered.bind(this));
|
||||||
this._thumbnails.connect('item-removed', this._windowRemoved.bind(this));
|
this._thumbnails.connect('item-removed', this._windowRemoved.bind(this));
|
||||||
@ -398,7 +392,7 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
this._switcherList._items[this._selectedIndex].add_accessible_state(Atk.StateType.EXPANDED);
|
this._switcherList.addAccessibleState(this._selectedIndex, Atk.StateType.EXPANDED);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -481,9 +475,6 @@ var CyclerPopup = GObject.registerClass({
|
|||||||
|
|
||||||
this._items = this._getWindows();
|
this._items = this._getWindows();
|
||||||
|
|
||||||
if (this._items.length == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this._highlight = new CyclerHighlight();
|
this._highlight = new CyclerHighlight();
|
||||||
global.window_group.add_actor(this._highlight);
|
global.window_group.add_actor(this._highlight);
|
||||||
|
|
||||||
@ -559,11 +550,8 @@ class WindowSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
|
|
||||||
let windows = this._getWindowList();
|
let windows = this._getWindowList();
|
||||||
|
|
||||||
if (windows.length == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
let mode = this._settings.get_enum('app-icon-mode');
|
let mode = this._settings.get_enum('app-icon-mode');
|
||||||
this._switcherList = new WindowList(windows, mode);
|
this._switcherList = new WindowSwitcher(windows, mode);
|
||||||
this._items = this._switcherList.icons;
|
this._items = this._switcherList.icons;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -596,7 +584,7 @@ class WindowSwitcherPopup extends SwitcherPopup.SwitcherPopup {
|
|||||||
this._select(this._previous());
|
this._select(this._previous());
|
||||||
else if (keysym == Clutter.KEY_Right)
|
else if (keysym == Clutter.KEY_Right)
|
||||||
this._select(this._next());
|
this._select(this._next());
|
||||||
else if (keysym == Clutter.KEY_w || keysym == Clutter.KEY_F4)
|
else if (keysym === Clutter.KEY_w || keysym === Clutter.KEY_W || keysym === Clutter.KEY_F4)
|
||||||
this._closeWindow(this._selectedIndex);
|
this._closeWindow(this._selectedIndex);
|
||||||
else
|
else
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
@ -785,7 +773,9 @@ class AppSwitcher extends SwitcherPopup.SwitcherList {
|
|||||||
|
|
||||||
// We override SwitcherList's _onItemEnter method to delay
|
// We override SwitcherList's _onItemEnter method to delay
|
||||||
// activation when the thumbnail list is open
|
// activation when the thumbnail list is open
|
||||||
_onItemEnter(index) {
|
_onItemEnter(item) {
|
||||||
|
const index = this._items.indexOf(item);
|
||||||
|
|
||||||
if (this._mouseTimeOutId != 0)
|
if (this._mouseTimeOutId != 0)
|
||||||
GLib.source_remove(this._mouseTimeOutId);
|
GLib.source_remove(this._mouseTimeOutId);
|
||||||
if (this._altTabPopup.thumbnailsVisible) {
|
if (this._altTabPopup.thumbnailsVisible) {
|
||||||
@ -811,7 +801,7 @@ class AppSwitcher extends SwitcherPopup.SwitcherList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We override SwitcherList's highlight() method to also deal with
|
// We override SwitcherList's highlight() method to also deal with
|
||||||
// the AppSwitcher->ThumbnailList arrows. Apps with only 1 window
|
// the AppSwitcher->ThumbnailSwitcher arrows. Apps with only 1 window
|
||||||
// will hide their arrows by default, but show them when their
|
// will hide their arrows by default, but show them when their
|
||||||
// thumbnails are visible (ie, when the app icon is supposed to be
|
// thumbnails are visible (ie, when the app icon is supposed to be
|
||||||
// in justOutline mode). Apps with multiple windows will normally
|
// in justOutline mode). Apps with multiple windows will normally
|
||||||
@ -868,8 +858,8 @@ class AppSwitcher extends SwitcherPopup.SwitcherList {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var ThumbnailList = GObject.registerClass(
|
var ThumbnailSwitcher = GObject.registerClass(
|
||||||
class ThumbnailList extends SwitcherPopup.SwitcherList {
|
class ThumbnailSwitcher extends SwitcherPopup.SwitcherList {
|
||||||
_init(windows) {
|
_init(windows) {
|
||||||
super._init(false);
|
super._init(false);
|
||||||
|
|
||||||
@ -1022,8 +1012,8 @@ class WindowIcon extends St.BoxLayout {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var WindowList = GObject.registerClass(
|
var WindowSwitcher = GObject.registerClass(
|
||||||
class WindowList extends SwitcherPopup.SwitcherList {
|
class WindowSwitcher extends SwitcherPopup.SwitcherList {
|
||||||
_init(windows, mode) {
|
_init(windows, mode) {
|
||||||
super._init(true);
|
super._init(true);
|
||||||
|
|
||||||
|
@ -12,14 +12,22 @@ var SPINNER_ANIMATION_DELAY = 1000;
|
|||||||
var Animation = GObject.registerClass(
|
var Animation = GObject.registerClass(
|
||||||
class Animation extends St.Bin {
|
class Animation extends St.Bin {
|
||||||
_init(file, width, height, speed) {
|
_init(file, width, height, speed) {
|
||||||
super._init({ width, height });
|
const themeContext = St.ThemeContext.get_for_stage(global.stage);
|
||||||
|
|
||||||
|
super._init({
|
||||||
|
width: width * themeContext.scale_factor,
|
||||||
|
height: height * themeContext.scale_factor,
|
||||||
|
});
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
this.connect('resource-scale-changed',
|
this.connect('resource-scale-changed',
|
||||||
this._loadFile.bind(this, file, width, height));
|
this._loadFile.bind(this, file, width, height));
|
||||||
|
|
||||||
let themeContext = St.ThemeContext.get_for_stage(global.stage);
|
|
||||||
this._scaleChangedId = themeContext.connect('notify::scale-factor',
|
this._scaleChangedId = themeContext.connect('notify::scale-factor',
|
||||||
this._loadFile.bind(this, file, width, height));
|
() => {
|
||||||
|
this._loadFile(file, width, height);
|
||||||
|
this.set_size(width * themeContext.scale_factor, height * themeContext.scale_factor);
|
||||||
|
});
|
||||||
|
|
||||||
this._speed = speed;
|
this._speed = speed;
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ class AppFavorites {
|
|||||||
constructor() {
|
constructor() {
|
||||||
this.FAVORITE_APPS_KEY = 'favorite-apps';
|
this.FAVORITE_APPS_KEY = 'favorite-apps';
|
||||||
this._favorites = {};
|
this._favorites = {};
|
||||||
global.settings.connect(`changed::${this.FAVORITE_APPS_KEY}`, this._onFavsChanged.bind(this));
|
global.settings.connect('changed::%s'.format(this.FAVORITE_APPS_KEY), this._onFavsChanged.bind(this));
|
||||||
this.reload();
|
this.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* exported AudioDeviceSelectionDBus */
|
/* exported AudioDeviceSelectionDBus */
|
||||||
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
||||||
|
|
||||||
|
const Dialog = imports.ui.dialog;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const ModalDialog = imports.ui.modalDialog;
|
const ModalDialog = imports.ui.modalDialog;
|
||||||
|
|
||||||
@ -36,18 +37,17 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_buildLayout() {
|
_buildLayout() {
|
||||||
let title = new St.Label({ style_class: 'audio-selection-title',
|
let content = new Dialog.MessageDialogContent({
|
||||||
text: _("Select Audio Device"),
|
title: _('Select Audio Device'),
|
||||||
x_align: Clutter.ActorAlign.CENTER });
|
});
|
||||||
|
|
||||||
this.contentLayout.style_class = 'audio-selection-content';
|
|
||||||
this.contentLayout.add(title);
|
|
||||||
|
|
||||||
this._selectionBox = new St.BoxLayout({
|
this._selectionBox = new St.BoxLayout({
|
||||||
style_class: 'audio-selection-box',
|
style_class: 'audio-selection-box',
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
});
|
});
|
||||||
this.contentLayout.add_child(this._selectionBox);
|
content.add_child(this._selectionBox);
|
||||||
|
|
||||||
|
this.contentLayout.add_child(content);
|
||||||
|
|
||||||
if (Main.sessionMode.allowSettings) {
|
if (Main.sessionMode.allowSettings) {
|
||||||
this.addButton({ action: this._openSettings.bind(this),
|
this.addButton({ action: this._openSettings.bind(this),
|
||||||
@ -120,7 +120,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
|
|||||||
let app = Shell.AppSystem.get_default().lookup_app(desktopFile);
|
let app = Shell.AppSystem.get_default().lookup_app(desktopFile);
|
||||||
|
|
||||||
if (!app) {
|
if (!app) {
|
||||||
log(`Settings panel for desktop file ${desktopFile} could not be loaded!`);
|
log('Settings panel for desktop file %s could not be loaded!'.format(desktopFile));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -504,12 +504,9 @@ var SystemBackground = GObject.registerClass({
|
|||||||
Signals: { 'loaded': {} },
|
Signals: { 'loaded': {} },
|
||||||
}, class SystemBackground extends Meta.BackgroundActor {
|
}, class SystemBackground extends Meta.BackgroundActor {
|
||||||
_init() {
|
_init() {
|
||||||
let file = Gio.File.new_for_uri('resource:///org/gnome/shell/theme/noise-texture.png');
|
|
||||||
|
|
||||||
if (_systemBackground == null) {
|
if (_systemBackground == null) {
|
||||||
_systemBackground = new Meta.Background({ meta_display: global.display });
|
_systemBackground = new Meta.Background({ meta_display: global.display });
|
||||||
_systemBackground.set_color(DEFAULT_BACKGROUND_COLOR);
|
_systemBackground.set_color(DEFAULT_BACKGROUND_COLOR);
|
||||||
_systemBackground.set_file(file, GDesktopEnums.BackgroundStyle.WALLPAPER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super._init({
|
super._init({
|
||||||
@ -518,22 +515,11 @@ var SystemBackground = GObject.registerClass({
|
|||||||
background: _systemBackground,
|
background: _systemBackground,
|
||||||
});
|
});
|
||||||
|
|
||||||
let cache = Meta.BackgroundImageCache.get_default();
|
let id = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
|
||||||
let image = cache.load(file);
|
this.emit('loaded');
|
||||||
if (image.is_loaded()) {
|
return GLib.SOURCE_REMOVE;
|
||||||
image = null;
|
});
|
||||||
let id = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
|
GLib.Source.set_name_by_id(id, '[gnome-shell] SystemBackground.loaded');
|
||||||
this.emit('loaded');
|
|
||||||
return GLib.SOURCE_REMOVE;
|
|
||||||
});
|
|
||||||
GLib.Source.set_name_by_id(id, '[gnome-shell] SystemBackground.loaded');
|
|
||||||
} else {
|
|
||||||
let id = image.connect('loaded', () => {
|
|
||||||
this.emit('loaded');
|
|
||||||
image.disconnect(id);
|
|
||||||
image = null;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ const Main = imports.ui.main;
|
|||||||
const MessageList = imports.ui.messageList;
|
const MessageList = imports.ui.messageList;
|
||||||
const MessageTray = imports.ui.messageTray;
|
const MessageTray = imports.ui.messageTray;
|
||||||
const Mpris = imports.ui.mpris;
|
const Mpris = imports.ui.mpris;
|
||||||
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
const Util = imports.misc.util;
|
const Util = imports.misc.util;
|
||||||
|
|
||||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||||
@ -17,7 +18,7 @@ var ELLIPSIS_CHAR = '\u2026';
|
|||||||
|
|
||||||
var MESSAGE_ICON_SIZE = -1; // pick up from CSS
|
var MESSAGE_ICON_SIZE = -1; // pick up from CSS
|
||||||
|
|
||||||
var NC_ = (context, str) => `${context}\u0004${str}`;
|
var NC_ = (context, str) => '%s\u0004%s'.format(context, str);
|
||||||
|
|
||||||
function sameYear(dateA, dateB) {
|
function sameYear(dateA, dateB) {
|
||||||
return dateA.getYear() == dateB.getYear();
|
return dateA.getYear() == dateB.getYear();
|
||||||
@ -113,26 +114,26 @@ var EventSourceBase = GObject.registerClass({
|
|||||||
Signals: { 'changed': {} },
|
Signals: { 'changed': {} },
|
||||||
}, class EventSourceBase extends GObject.Object {
|
}, class EventSourceBase extends GObject.Object {
|
||||||
get isLoading() {
|
get isLoading() {
|
||||||
throw new GObject.NotImplementedError(`isLoading in ${this.constructor.name}`);
|
throw new GObject.NotImplementedError('isLoading in %s'.format(this.constructor.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasCalendars() {
|
get hasCalendars() {
|
||||||
throw new GObject.NotImplementedError(`hasCalendars in ${this.constructor.name}`);
|
throw new GObject.NotImplementedError('hasCalendars in %s'.format(this.constructor.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
requestRange(_begin, _end) {
|
requestRange(_begin, _end) {
|
||||||
throw new GObject.NotImplementedError(`requestRange in ${this.constructor.name}`);
|
throw new GObject.NotImplementedError('requestRange in %s'.format(this.constructor.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
getEvents(_begin, _end) {
|
getEvents(_begin, _end) {
|
||||||
throw new GObject.NotImplementedError(`getEvents in ${this.constructor.name}`);
|
throw new GObject.NotImplementedError('getEvents in %s'.format(this.constructor.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
hasEvents(_day) {
|
hasEvents(_day) {
|
||||||
throw new GObject.NotImplementedError(`hasEvents in ${this.constructor.name}`);
|
throw new GObject.NotImplementedError('hasEvents in %s'.format(this.constructor.name));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -214,7 +215,7 @@ class DBusEventSource extends EventSourceBase {
|
|||||||
// about the HasCalendars property and would cause an exception trying
|
// about the HasCalendars property and would cause an exception trying
|
||||||
// to read it)
|
// to read it)
|
||||||
} else {
|
} else {
|
||||||
log(`Error loading calendars: ${e.message}`);
|
log('Error loading calendars: %s'.format(e.message));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -358,7 +359,7 @@ var Calendar = GObject.registerClass({
|
|||||||
this._weekStart = Shell.util_get_week_start();
|
this._weekStart = Shell.util_get_week_start();
|
||||||
this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.calendar' });
|
this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.calendar' });
|
||||||
|
|
||||||
this._settings.connect(`changed::${SHOW_WEEKDATE_KEY}`, this._onSettingsChange.bind(this));
|
this._settings.connect('changed::%s'.format(SHOW_WEEKDATE_KEY), this._onSettingsChange.bind(this));
|
||||||
this._useWeekdate = this._settings.get_boolean(SHOW_WEEKDATE_KEY);
|
this._useWeekdate = this._settings.get_boolean(SHOW_WEEKDATE_KEY);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -625,13 +626,13 @@ var Calendar = GObject.registerClass({
|
|||||||
|
|
||||||
// Hack used in lieu of border-collapse - see gnome-shell.css
|
// Hack used in lieu of border-collapse - see gnome-shell.css
|
||||||
if (row == 2)
|
if (row == 2)
|
||||||
styleClass = `calendar-day-top ${styleClass}`;
|
styleClass = 'calendar-day-top %s'.format(styleClass);
|
||||||
|
|
||||||
let leftMost = rtl
|
let leftMost = rtl
|
||||||
? iter.getDay() == (this._weekStart + 6) % 7
|
? iter.getDay() == (this._weekStart + 6) % 7
|
||||||
: iter.getDay() == this._weekStart;
|
: iter.getDay() == this._weekStart;
|
||||||
if (leftMost)
|
if (leftMost)
|
||||||
styleClass = `calendar-day-left ${styleClass}`;
|
styleClass = 'calendar-day-left %s'.format(styleClass);
|
||||||
|
|
||||||
if (sameDay(now, iter))
|
if (sameDay(now, iter))
|
||||||
styleClass += ' calendar-today';
|
styleClass += ' calendar-today';
|
||||||
@ -737,15 +738,15 @@ class EventMessage extends MessageList.Message {
|
|||||||
let rtl = Clutter.get_default_text_direction() == Clutter.TextDirection.RTL;
|
let rtl = Clutter.get_default_text_direction() == Clutter.TextDirection.RTL;
|
||||||
if (this._event.date < periodBegin && !this._event.allDay) {
|
if (this._event.date < periodBegin && !this._event.allDay) {
|
||||||
if (rtl)
|
if (rtl)
|
||||||
title = `${title}${ELLIPSIS_CHAR}`;
|
title = '%s%s'.format(title, ELLIPSIS_CHAR);
|
||||||
else
|
else
|
||||||
title = `${ELLIPSIS_CHAR}${title}`;
|
title = '%s%s'.format(ELLIPSIS_CHAR, title);
|
||||||
}
|
}
|
||||||
if (this._event.end > periodEnd && !this._event.allDay) {
|
if (this._event.end > periodEnd && !this._event.allDay) {
|
||||||
if (rtl)
|
if (rtl)
|
||||||
title = `${ELLIPSIS_CHAR}${title}`;
|
title = '%s%s'.format(ELLIPSIS_CHAR, title);
|
||||||
else
|
else
|
||||||
title = `${title}${ELLIPSIS_CHAR}`;
|
title = '%s%s'.format(title, ELLIPSIS_CHAR);
|
||||||
}
|
}
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
@ -863,12 +864,10 @@ class EventsSection extends MessageList.MessageListSection {
|
|||||||
let now = new Date();
|
let now = new Date();
|
||||||
if (sameYear(this._date, now)) {
|
if (sameYear(this._date, now)) {
|
||||||
/* Translators: Shown on calendar heading when selected day occurs on current year */
|
/* Translators: Shown on calendar heading when selected day occurs on current year */
|
||||||
dayFormat = Shell.util_translate_time_string(NC_("calendar heading",
|
dayFormat = Shell.util_translate_time_string(NC_("calendar heading", "%A, %B %-d"));
|
||||||
"%A, %B %-d"));
|
|
||||||
} else {
|
} else {
|
||||||
/* Translators: Shown on calendar heading when selected day occurs on different year */
|
/* Translators: Shown on calendar heading when selected day occurs on different year */
|
||||||
dayFormat = Shell.util_translate_time_string(NC_("calendar heading",
|
dayFormat = Shell.util_translate_time_string(NC_("calendar heading", "%A, %B %-d, %Y"));
|
||||||
"%A, %B %-d, %Y"));
|
|
||||||
}
|
}
|
||||||
this._title.label = this._date.toLocaleFormat(dayFormat);
|
this._title.label = this._date.toLocaleFormat(dayFormat);
|
||||||
}
|
}
|
||||||
@ -1102,6 +1101,26 @@ class Placeholder extends St.BoxLayout {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const DoNotDisturbSwitch = GObject.registerClass(
|
||||||
|
class DoNotDisturbSwitch extends PopupMenu.Switch {
|
||||||
|
_init() {
|
||||||
|
this._settings = new Gio.Settings({
|
||||||
|
schema_id: 'org.gnome.desktop.notifications',
|
||||||
|
});
|
||||||
|
|
||||||
|
super._init(this._settings.get_boolean('show-banners'));
|
||||||
|
|
||||||
|
this._settings.bind('show-banners',
|
||||||
|
this, 'state',
|
||||||
|
Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
||||||
|
|
||||||
|
this.connect('destroy', () => {
|
||||||
|
this._settings.run_dispose();
|
||||||
|
this._settings = null;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var CalendarMessageList = GObject.registerClass(
|
var CalendarMessageList = GObject.registerClass(
|
||||||
class CalendarMessageList extends St.Widget {
|
class CalendarMessageList extends St.Widget {
|
||||||
_init() {
|
_init() {
|
||||||
@ -1127,16 +1146,33 @@ class CalendarMessageList extends St.Widget {
|
|||||||
this._scrollView.set_policy(St.PolicyType.NEVER, St.PolicyType.AUTOMATIC);
|
this._scrollView.set_policy(St.PolicyType.NEVER, St.PolicyType.AUTOMATIC);
|
||||||
box.add_actor(this._scrollView);
|
box.add_actor(this._scrollView);
|
||||||
|
|
||||||
|
let hbox = new St.BoxLayout({ style_class: 'message-list-controls' });
|
||||||
|
box.add_child(hbox);
|
||||||
|
|
||||||
|
hbox.add_child(new St.Label({
|
||||||
|
text: _('Do Not Disturb'),
|
||||||
|
y_align: Clutter.ActorAlign.CENTER,
|
||||||
|
}));
|
||||||
|
|
||||||
|
this._dndSwitch = new DoNotDisturbSwitch();
|
||||||
|
this._dndButton = new St.Button({
|
||||||
|
can_focus: true,
|
||||||
|
child: this._dndSwitch,
|
||||||
|
});
|
||||||
|
this._dndButton.connect('clicked', () => this._dndSwitch.toggle());
|
||||||
|
hbox.add_child(this._dndButton);
|
||||||
|
|
||||||
this._clearButton = new St.Button({
|
this._clearButton = new St.Button({
|
||||||
style_class: 'message-list-clear-button button',
|
style_class: 'message-list-clear-button button',
|
||||||
label: _('Clear'),
|
label: _('Clear'),
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
|
x_expand: true,
|
||||||
x_align: Clutter.ActorAlign.END,
|
x_align: Clutter.ActorAlign.END,
|
||||||
});
|
});
|
||||||
this._clearButton.connect('clicked', () => {
|
this._clearButton.connect('clicked', () => {
|
||||||
this._sectionList.get_children().forEach(s => s.clear());
|
this._sectionList.get_children().forEach(s => s.clear());
|
||||||
});
|
});
|
||||||
box.add_actor(this._clearButton);
|
hbox.add_actor(this._clearButton);
|
||||||
|
|
||||||
this._placeholder.bind_property('visible',
|
this._placeholder.bind_property('visible',
|
||||||
this._clearButton, 'visible',
|
this._clearButton, 'visible',
|
||||||
@ -1168,7 +1204,7 @@ class CalendarMessageList extends St.Widget {
|
|||||||
|
|
||||||
for (let prop of ['visible', 'empty', 'can-clear']) {
|
for (let prop of ['visible', 'empty', 'can-clear']) {
|
||||||
connectionsIds.push(
|
connectionsIds.push(
|
||||||
section.connect(`notify::${prop}`, this._sync.bind(this)));
|
section.connect('notify::%s'.format(prop), this._sync.bind(this)));
|
||||||
}
|
}
|
||||||
connectionsIds.push(section.connect('message-focused', (_s, messageActor) => {
|
connectionsIds.push(section.connect('message-focused', (_s, messageActor) => {
|
||||||
Util.ensureActorVisibleInScrollView(this._scrollView, messageActor);
|
Util.ensureActorVisibleInScrollView(this._scrollView, messageActor);
|
||||||
|
@ -19,7 +19,7 @@ class CheckBox extends St.Button {
|
|||||||
this._box = new St.Bin({ y_align: Clutter.ActorAlign.START });
|
this._box = new St.Bin({ y_align: Clutter.ActorAlign.START });
|
||||||
container.add_actor(this._box);
|
container.add_actor(this._box);
|
||||||
|
|
||||||
this._label = new St.Label();
|
this._label = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
|
||||||
this._label.clutter_text.set_line_wrap(true);
|
this._label.clutter_text.set_line_wrap(true);
|
||||||
this._label.clutter_text.set_ellipsize(Pango.EllipsizeMode.NONE);
|
this._label.clutter_text.set_ellipsize(Pango.EllipsizeMode.NONE);
|
||||||
container.add_actor(this._label);
|
container.add_actor(this._label);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* exported CloseDialog */
|
/* exported CloseDialog */
|
||||||
|
|
||||||
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
const { Clutter, GLib, GObject, Meta, Shell, St } = imports.gi;
|
||||||
|
|
||||||
const Dialog = imports.ui.dialog;
|
const Dialog = imports.ui.dialog;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
@ -40,10 +40,9 @@ var CloseDialog = GObject.registerClass({
|
|||||||
|
|
||||||
/* Translators: %s is an application name */
|
/* Translators: %s is an application name */
|
||||||
let title = _("“%s” is not responding.").format(windowApp.get_name());
|
let title = _("“%s” is not responding.").format(windowApp.get_name());
|
||||||
let subtitle = _("You may choose to wait a short while for it to " +
|
let description = _('You may choose to wait a short while for it to ' +
|
||||||
"continue or force the application to quit entirely.");
|
'continue or force the application to quit entirely.');
|
||||||
let icon = new Gio.ThemedIcon({ name: 'dialog-warning-symbolic' });
|
return new Dialog.MessageDialogContent({ title, description });
|
||||||
return new Dialog.MessageDialogContent({ icon, title, subtitle });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateScale() {
|
_updateScale() {
|
||||||
@ -67,7 +66,7 @@ var CloseDialog = GObject.registerClass({
|
|||||||
this._dialog.width = windowActor.width;
|
this._dialog.width = windowActor.width;
|
||||||
this._dialog.height = windowActor.height;
|
this._dialog.height = windowActor.height;
|
||||||
|
|
||||||
this._dialog.addContent(this._createDialogContent());
|
this._dialog.contentLayout.add_child(this._createDialogContent());
|
||||||
this._dialog.addButton({ label: _('Force Quit'),
|
this._dialog.addButton({ label: _('Force Quit'),
|
||||||
action: this._onClose.bind(this),
|
action: this._onClose.bind(this),
|
||||||
default: true });
|
default: true });
|
||||||
@ -193,6 +192,7 @@ var CloseDialog = GObject.registerClass({
|
|||||||
this._dialog = null;
|
this._dialog = null;
|
||||||
this._removeWindowEffect();
|
this._removeWindowEffect();
|
||||||
|
|
||||||
|
dialog.makeInactive();
|
||||||
dialog._dialog.ease({
|
dialog._dialog.ease({
|
||||||
scale_y: 0,
|
scale_y: 0,
|
||||||
mode: Clutter.AnimationMode.LINEAR,
|
mode: Clutter.AnimationMode.LINEAR,
|
||||||
|