From 30fbb9edd8ebff84847bb72f0dc18decf9906e36 Mon Sep 17 00:00:00 2001 From: Emupedia Date: Sun, 16 Sep 2018 08:02:31 +0300 Subject: [PATCH] More work --- beta/emuos/css/themes/win311/window.css | 77 ++++++++++++++++-- .../themes/win311/window/menu-pressed.png | Bin 0 -> 136 bytes .../images/themes/win311/window/menu.png | Bin 0 -> 141 bytes beta/emuos/js/main.js | 3 + beta/emuos/js/window.js | 4 +- 5 files changed, 77 insertions(+), 7 deletions(-) create mode 100644 beta/emuos/images/themes/win311/window/menu-pressed.png create mode 100644 beta/emuos/images/themes/win311/window/menu.png diff --git a/beta/emuos/css/themes/win311/window.css b/beta/emuos/css/themes/win311/window.css index 1487794a..811aa228 100644 --- a/beta/emuos/css/themes/win311/window.css +++ b/beta/emuos/css/themes/win311/window.css @@ -3,34 +3,101 @@ .theme-win311 .emuos-window { border-radius: 0; border: 1px solid #000; - padding: 0; + background-color: #c0c0c0; + outline: 1px solid #000; + outline-offset: -4px; + padding: 3px; } +/*noinspection CssOptimizeSimilarProperties*/ +.theme-win311 .emuos-window .emuos-window-icon { + /*position: absolute;*/ + /*display: block;*/ + top: 0; + left: 0; + width: 19px; + height: 18px; + border: none; + border-right: 1px solid #000; + border-radius: 0; + padding: 0; + margin: 0; + background-color: #c0c0c0; + background-image: url(../../../images/themes/win311/window/menu.png); + background-repeat: no-repeat; + background-position: center; +} + +/*noinspection CssOptimizeSimilarProperties*/ +.theme-win311 .emuos-window .emuos-window-icon:active, +.theme-win311 .emuos-window .emuos-window-icon:focus { + background-color: #3f3f3f; + background-image: url(../../../images/themes/win311/window/menu-pressed.png); + background-repeat: no-repeat; + background-position: center; +} + +/*noinspection CssOptimizeSimilarProperties*/ +/*.theme-win311 .emuos-window .emuos-window-icon { + display: block; + width: 5px; + height: 1px; + background-color: #fff; + margin-left: 6px; + margin-right: 6px; + margin-top: 7px; + margin-bottom: 8px; + border: 1px solid #000; + box-shadow: 1px 1px #808080; +} + +.theme-win311 .emuos-window .emuos-window-icon:active, +.theme-win311 .emuos-window .emuos-window-icon:focus { + background-color: #000; + border: 1px solid #fff; + box-shadow: 1px 1px #c0c0c0; +}*/ + +.theme-win311 .emuos-window.emuos-window-top { + /*background-color: #000080;*/ +} + +/*noinspection CssOptimizeSimilarProperties*/ .theme-win311 .emuos-window .ui-dialog-titlebar { background-color: #c0c0c0; border-radius: 0; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; - line-height: 18px; text-align: center; + border: none; border-bottom: 1px solid #000; + padding: 0; + padding-left: 19px; + height: 18px; +} + +.theme-win311 .emuos-window .ui-dialog-titlebar .ui-dialog-title { + line-height: 21px; + margin: -2px 0 0; } .theme-win311 .emuos-window .ui-dialog-titlebar.ui-state-active { background-color: #000080; - border: 1px solid #000080; + border: none; border-bottom: 1px solid #000; } -.theme-win311 .emuos-window .ui-dialog-content { +.theme-win311 .emuos-window .emuos-window-content { padding: 0; font-family: Arial, sans-serif; font-size: 13px; line-height: 16px; + height: calc(100% - 19px) !important; + background-color: #fff; } -.theme-win311 .emuos-window .ui-dialog-content p { +.theme-win311 .emuos-window .emuos-window-content p { margin: 0; padding: 0; } diff --git a/beta/emuos/images/themes/win311/window/menu-pressed.png b/beta/emuos/images/themes/win311/window/menu-pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..07b4d94228fca801b3e441be4c99f0331aa56691 GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^96-#%!3HEZpRM}|6H_V+Po~-c6=`|8IEGZ*O8Udk!n1=>nR`Y`%8?0-FS9c;ew=4|{D4V; iwMSv<4iN?x35I57e)cst5_5pM7(8A5T-G@yGywpk#V8X1 literal 0 HcmV?d00001 diff --git a/beta/emuos/images/themes/win311/window/menu.png b/beta/emuos/images/themes/win311/window/menu.png new file mode 100644 index 0000000000000000000000000000000000000000..35d29facaca0256d6590a0c9f07b6275f6398f8b GIT binary patch literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^96-#%!3HEZpRM}|6H_V+Po~-c73q7rIEGZ*D(P|LVld!2B=Tp6{&taV!G`Kb6&P7sRjzQS mt8m`FsL%WM>?~giMm7d9E`9-FeY4F#tqh*7elF{r5}E)s|0k9J literal 0 HcmV?d00001 diff --git a/beta/emuos/js/main.js b/beta/emuos/js/main.js index 601bf809..4f430e86 100644 --- a/beta/emuos/js/main.js +++ b/beta/emuos/js/main.js @@ -12,6 +12,9 @@ }); $('.window').window({ + icons: { + main: '' + }, group: 'demo' }); diff --git a/beta/emuos/js/window.js b/beta/emuos/js/window.js index 9436f7b0..7b5c3e2b 100644 --- a/beta/emuos/js/window.js +++ b/beta/emuos/js/window.js @@ -3466,12 +3466,12 @@ this.uiDialogTitlebar.addClass(this.classes.titlebarIcon); if (!$icon.length) { - $icon = $("") + $icon = $("") .prependTo(this.uiDialogTitlebar); } $icon - .removeAttr("class") + //.removeAttr("class") .addClass( this.classes.uiIcon + " " + this.classes.icon