Browse Source

show annotations in fullscreen mode

j 6 months ago
parent
commit
85e315be40
3 changed files with 13 additions and 3 deletions
  1. 10
    0
      static/css/oml.css
  2. 2
    2
      static/js/fullscreenButton.js
  3. 1
    1
      static/js/mainMenu.js

+ 10
- 0
static/css/oml.css View File

@@ -39,3 +39,13 @@
39 39
 .OxAnnotationFolder div.OxInput {
40 40
     background-image: none;
41 41
 }
42
+
43
+.OxThemeOxlight .OxAnnotationFolder {
44
+    background-color: rgb(240, 240, 240);
45
+}
46
+.OxThemeOxmedium .OxAnnotationFolder {
47
+    background-color: rgb(144, 144, 144);
48
+}
49
+.OxThemeOxdark .OxAnnotationFolder {
50
+    background-color: rgb(16, 16, 16);
51
+}

+ 2
- 2
static/js/fullscreenButton.js View File

@@ -16,7 +16,7 @@ oml.ui.fullscreenButton = function() {
16 16
         })
17 17
         .bindEvent({
18 18
             click: function() {
19
-                Ox.Fullscreen.enter(oml.$ui.viewer.find('iframe')[0]);
19
+                Ox.Fullscreen.enter(oml.$ui.viewer[0]);
20 20
             },
21 21
             oml_itemview: function() {
22 22
                 that.updateElement();
@@ -31,4 +31,4 @@ oml.ui.fullscreenButton = function() {
31 31
 
32 32
     return that.updateElement();
33 33
 
34
-};
34
+};

+ 1
- 1
static/js/mainMenu.js View File

@@ -566,7 +566,7 @@ oml.ui.mainMenu = function() {
566 566
                         ? 'openPreview' : 'closePreview'
567 567
                     ]();
568 568
                 } else if (id == 'fullscreen') {
569
-                    Ox.Fullscreen.enter(oml.$ui.viewer.find('iframe')[0]);
569
+                    Ox.Fullscreen.enter(oml.$ui.viewer[0]);
570 570
                 } else if (id == 'debugmode') {
571 571
                     if (oml.localStorage('enableDebugMode')) {
572 572
                         oml.localStorage['delete']('enableDebugMode');