Skip to content

Commit 5d2ac36

Browse files
committed
New: Button to enable/disable full screen from the more options menu
1 parent b72f32f commit 5d2ac36

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1818
- Option to disable `Align with next horizontal` when reading on double page [`97d8ecd`](https://github.com/ollm/OpenComic/commit/97d8ecdde04c2a5c418440d8fbbf06496b16c8ba)
1919
- Option in setting to adjust gamepad sensitivity [`f309c27`](https://github.com/ollm/OpenComic/commit/f309c27195ccf91b0d20600c06f1af03deee5611)
2020
- Copy image to clipboard [`bb96cef`](https://github.com/ollm/OpenComic/commit/bb96cef97ee1783fc27f3600548a91bb37a96045)
21-
- OPDS support
21+
- OPDS support [`b72f32f`](https://github.com/ollm/OpenComic/commit/b72f32f2445b90f13f5e2cc45865c2c17a72af82)
22+
- Button to enable/disable full screen from the more options menu
2223

2324
##### 🐛 Bug Fixes
2425

‎scripts/reading.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2949,6 +2949,7 @@ function loadReadingMoreOptions()
29492949
handlebarsContext.hideContent = {
29502950
barHeader: isFullScreen ? config.readingHideBarHeaderFullScreen : config.readingHideBarHeader,
29512951
contentLeft: isFullScreen ? config.readingHideContentLeftFullScreen : config.readingHideContentLeft,
2952+
isFullScreen: isFullScreen,
29522953
};
29532954

29542955
$('#reading-more-options .menu-simple').html(template.load('reading.elements.menus.more.options.html'));
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
<div class="menu-simple-content">
22
<div>
3-
<div class="menu-simple-text reading-reading-manga">
3+
<div class="menu-simple-text">
44
{{language.reading.moreOptions.hideBarHeader}}
55
<div class="switch{{#if hideContent.barHeader}} a{{/if}}" on="reading.hideBarHeader(true)" off="reading.hideBarHeader(false)">
66
<div></div>
77
<svg viewBox="0 0 52 32"><path d="M 8,0 C 3.58,0 0,3.58 0,8 0,12.42 3.58,16 8,16 8,16 8,16 8,16 12.42,16 16,12.42 16,8 16,3.58 12.42,0 8,0 8,0 8,0 8,0 Z"></path></svg>
88
</div>
99
</div>
10-
<div class="menu-simple-text reading-reading-webtoon">
10+
<div class="menu-simple-text">
1111
{{language.reading.moreOptions.hideContentLeft}}
1212
<div class="switch{{#if hideContent.contentLeft}} a{{/if}}" on="reading.hideContentLeft(true)" off="reading.hideContentLeft(false)">
1313
<div></div>
1414
<svg viewBox="0 0 52 32"><path d="M 8,0 C 3.58,0 0,3.58 0,8 0,12.42 3.58,16 8,16 8,16 8,16 8,16 12.42,16 16,12.42 16,8 16,3.58 12.42,0 8,0 8,0 8,0 8,0 Z"></path></svg>
1515
</div>
1616
</div>
17+
18+
<div class="menu-simple-text">
19+
{{language.menu.view.toggleFullScreen}}
20+
<div class="switch{{#if hideContent.isFullScreen}} a{{/if}}" on="fullScreen(true); reading.loadReadingMoreOptions();" off="fullScreen(false); reading.loadReadingMoreOptions();">
21+
<div></div>
22+
<svg viewBox="0 0 52 32"><path d="M 8,0 C 3.58,0 0,3.58 0,8 0,12.42 3.58,16 8,16 8,16 8,16 8,16 12.42,16 16,12.42 16,8 16,3.58 12.42,0 8,0 8,0 8,0 8,0 Z"></path></svg>
23+
</div>
24+
</div>
25+
1726
</div>
1827
</div>

0 commit comments

Comments
 (0)