From ab812c8deca4bd1169b8453300b35b9d38d2f90b Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 23 Feb 2023 10:12:21 -0700 Subject: [PATCH] Just the timer dialog gets timesheet color, leave others alone --- api/js/jsapi/egw_timer.js | 1 + pixelegg/mobile/fw_mobile.css | 8 ++++++-- pixelegg/mobile/fw_mobile.less | 8 ++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/api/js/jsapi/egw_timer.js b/api/js/jsapi/egw_timer.js index b58ca823b4..c003ad7961 100644 --- a/api/js/jsapi/egw_timer.js +++ b/api/js/jsapi/egw_timer.js @@ -443,6 +443,7 @@ egw.extend('timer', egw.MODULE_GLOBAL, function() { dialog = undefined; }, + id: "timer_dialog", title: _title || 'Start & stop timer', template: egw.webserverUrl + '/timesheet/templates/default/timer.xet', buttons: [ diff --git a/pixelegg/mobile/fw_mobile.css b/pixelegg/mobile/fw_mobile.css index e52ad0e9da..d07ea2617a 100644 --- a/pixelegg/mobile/fw_mobile.css +++ b/pixelegg/mobile/fw_mobile.css @@ -8332,7 +8332,7 @@ table.egwGridView_grid img.et2_appicon { } body et2-dialog::part(header) { color: white; - background: #330066; + background: #0c5da5; height: 5ex; padding: 0; padding-left: 5px; @@ -8346,7 +8346,7 @@ table.egwGridView_grid img.et2_appicon { box-shadow: 0px 4px 5px 2px silver; width: 100%; margin-top: 0px; - background: #330066; + background: #0c5da5; } body et2-dialog et2-button[slot="footer"] { padding-left: 150%; @@ -8392,6 +8392,10 @@ table.egwGridView_grid img.et2_appicon { body et2-button.plus_button::part(base) { display: none; } + body et2-dialog#timer_dialog::part(header), + body et2-dialog#timer_dialog::part(footer) { + background: #330066; + } body .et2_nextmatch .nextmatch_sortheader { padding-right: 0px; margin-right: 0px; diff --git a/pixelegg/mobile/fw_mobile.less b/pixelegg/mobile/fw_mobile.less index e49c3b6a03..a43dc5d4f2 100644 --- a/pixelegg/mobile/fw_mobile.less +++ b/pixelegg/mobile/fw_mobile.less @@ -597,7 +597,7 @@ et2-dialog::part(header) { color: white; - background: @timesheet-color; + background: #0c5da5; height: 5ex; padding: 0; padding-left: 5px; @@ -614,7 +614,7 @@ width: 100%; margin-top: 0px; - background: @timesheet-color; + background: #0c5da5; } et2-dialog et2-button[slot="footer"] { @@ -662,6 +662,10 @@ display: none; } + et2-dialog#timer_dialog::part(header), et2-dialog#timer_dialog::part(footer) { + background: @timesheet-color; + } + .et2_nextmatch { .nextmatch_sortheader { padding-right: 0px;