From 850df94c9335d0df9b32ad3b88eda87d500688aa Mon Sep 17 00:00:00 2001 From: OnlineLearningTutorials <55099435+OnlineLearningTutorials@users.noreply.github.com> Date: Wed, 3 Jul 2024 21:34:32 +0530 Subject: [PATCH] panchang@india: Minor bug fix and style improvement (#1219) --- .../files/panchang@india/desklet.js | 10 +++++----- .../files/panchang@india/metadata.json | 3 ++- .../files/panchang@india/stylesheet.css | 19 +++++++++++++------ 3 files changed, 20 insertions(+), 12 deletions(-) mode change 100755 => 100644 panchang@india/files/panchang@india/stylesheet.css diff --git a/panchang@india/files/panchang@india/desklet.js b/panchang@india/files/panchang@india/desklet.js index 522fb3221..ba6c4c6da 100644 --- a/panchang@india/files/panchang@india/desklet.js +++ b/panchang@india/files/panchang@india/desklet.js @@ -20,7 +20,7 @@ MyDesklet.prototype = { _init: function(metadata) { Desklet.Desklet.prototype._init.call(this, metadata); - this._mainContainer = new St.BoxLayout({ vertical: false }); + this._mainContainer = new St.BoxLayout({ vertical: false, style_class: 'main_container' }); this._calenderContainer = new St.BoxLayout({ vertical: true, style_class: 'calender-container' }); this._panchangContainer = new St.BoxLayout({ vertical: true, style_class: 'panchang-container' }); @@ -45,8 +45,8 @@ MyDesklet.prototype = { this._timeContainer.add(this._time); this._calenderContainer.add(this._dateContainer, { x_fill: true }); - this._calenderContainer.add(this._monthContainer); - this._calenderContainer.add(this._timeContainer); + this._calenderContainer.add(this._monthContainer, { x_fill: true}); + this._calenderContainer.add(this._timeContainer, { x_fill: true}); this._panchangContainer.add(this._vaaram); this._panchangContainer.add(this._tithi); @@ -674,14 +674,14 @@ function tithi_end(jd, n1, len) { knv = Math.floor(((jd - 2415020) / 365.25) * 12.3685); itit = n1 + 1; aspect = len * itit; // sun n moon in the early tithi - if (aspect == 0) { + /*if (aspect == 0) { jdt = novolun(jd, knv); flag = 1; } if (aspect == 360) { jdt = novolun(jd, (knv + 1)); flag = 1; - } + }*/ while (flag < 1) { Lsun0 = sun(jdt); Lmoon0 = moon(jdt); diff --git a/panchang@india/files/panchang@india/metadata.json b/panchang@india/files/panchang@india/metadata.json index c43a6c4be..db7752e64 100644 --- a/panchang@india/files/panchang@india/metadata.json +++ b/panchang@india/files/panchang@india/metadata.json @@ -1,5 +1,6 @@ { "description": "Displaying Hindu Panchnage", "uuid": "panchang@india", - "name": "Panchang Desklet" + "name": "Panchang Desklet", + "version": "1.1" } diff --git a/panchang@india/files/panchang@india/stylesheet.css b/panchang@india/files/panchang@india/stylesheet.css old mode 100755 new mode 100644 index 51c590be6..7d1a43506 --- a/panchang@india/files/panchang@india/stylesheet.css +++ b/panchang@india/files/panchang@india/stylesheet.css @@ -1,3 +1,10 @@ +.main_container { + background-color: rgba(0,0,0,0.4); + border: 1px solid black; + border-radius: 10px; + padding: 10px; +} + .calender-container { padding: 0 10px; text-align: center; @@ -5,20 +12,20 @@ .date-container { font-size: 48px; - color: red; - text-align: justify; + color: pink; + text-align: right; } .month-container { - font-size: 18px; - color: red; + font-size: 16px; + color: pink; text-align: right; } .time-container { - font-size: 24px; + font-size: 20px; color: pink; - text-align: center; + text-align: right; }