fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[wolnelektury.git]
/
src
/
annoy
/
places.py
diff --git
a/src/annoy/places.py
b/src/annoy/places.py
index
93b22e4
..
7663a61
100644
(file)
--- a/
src/annoy/places.py
+++ b/
src/annoy/places.py
@@
-5,7
+5,11
@@
PLACE_DEFINITIONS = [
('book-page', _('Book page'), False),
('book-text-intermission', _('Book text intermission'), False),
('book-fragment-list', _('Next to list of book fragments.'), False),
('book-page', _('Book page'), False),
('book-text-intermission', _('Book text intermission'), False),
('book-fragment-list', _('Next to list of book fragments.'), False),
- ('blackout', _('Blackout'), True),
+ ('blackout', _('Blackout'), True, (
+ ('full', _('Full screen')),
+# ('centre', _('Centre of screen')),
+ ('upper', _('Upper half of screen')),
+ )),
]
PLACE_CHOICES = [p[:2] for p in PLACE_DEFINITIONS]
]
PLACE_CHOICES = [p[:2] for p in PLACE_DEFINITIONS]
@@
-14,3
+18,12
@@
PLACES = {
p[0]: p[2]
for p in PLACE_DEFINITIONS
}
p[0]: p[2]
for p in PLACE_DEFINITIONS
}
+
+
+STYLES = []
+for p in PLACE_DEFINITIONS:
+ if len(p) > 3:
+ STYLES.extend([
+ (f'{p[0]}_{s[0]}', s[1])
+ for s in p[3]
+ ])