Skip to content

Commit

Permalink
css: Modified dialog widget "system" style title
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Dec 22, 2023
1 parent a8dabdb commit 0ce554d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/system/files/app/start/ui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</div>
</Form>
</Dialog>
<Dialog id="about" title="About RapidContext" modal="true" resizeable="false" class="about" style="width: 35rem;">
<Dialog id="about" title="About RapidContext" system="true" resizeable="false" class="about" style="width: 35rem;">
<div class="header position-absolute top-0 left-0 right-0 py-3">
<div class="center">
<a href="https://www.rapidcontext.com/" target="_blank" class="logotype" style="margin-left: 3em;">
Expand Down
3 changes: 3 additions & 0 deletions src/plugin/system/files/css/widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
-webkit-user-select: none;
user-select: none;
}
.widgetDialog.system > .widgetDialogTitle {
background: #06293a;
}
.widgetDialog.danger > .widgetDialogTitle {
background: linear-gradient(to right, var(--danger-700), var(--danger-500));
}
Expand Down
1 change: 1 addition & 0 deletions src/plugin/system/files/js/RapidContext_Widget_Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ RapidContext.Widget.Dialog.prototype.setAttrs = function (attrs) {
}
if ("system" in attrs) {
attrs.system = RapidContext.Data.bool(attrs.system);
this.classList.toggle("system", attrs.system);
}
if ("center" in attrs) {
attrs.center = RapidContext.Data.bool(attrs.center);
Expand Down

0 comments on commit 0ce554d

Please sign in to comment.