mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
closes #16907: changed default widget color to primary color
This commit is contained in:
parent
e7e538c26b
commit
bb2dbe627a
@ -276,6 +276,7 @@ class DashboardWidgetColorChoices(ChoiceSet):
|
|||||||
GRAY = 'gray'
|
GRAY = 'gray'
|
||||||
BLACK = 'black'
|
BLACK = 'black'
|
||||||
WHITE = 'white'
|
WHITE = 'white'
|
||||||
|
NETBOXTEAL = 'primary'
|
||||||
|
|
||||||
CHOICES = (
|
CHOICES = (
|
||||||
(BLUE, _('Blue')),
|
(BLUE, _('Blue')),
|
||||||
@ -291,6 +292,7 @@ class DashboardWidgetColorChoices(ChoiceSet):
|
|||||||
(GRAY, _('Gray')),
|
(GRAY, _('Gray')),
|
||||||
(BLACK, _('Black')),
|
(BLACK, _('Black')),
|
||||||
(WHITE, _('White')),
|
(WHITE, _('White')),
|
||||||
|
(NETBOXTEAL, _('NetBox Teal')),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 5,
|
'height': 5,
|
||||||
'title': 'Bookmarks',
|
'title': 'Bookmarks',
|
||||||
'color': 'orange',
|
'color': 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'widget': 'extras.ObjectCountsWidget',
|
'widget': 'extras.ObjectCountsWidget',
|
||||||
@ -46,7 +46,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 2,
|
'height': 2,
|
||||||
'title': 'Welcome!',
|
'title': 'Welcome!',
|
||||||
'color': 'green',
|
'color': 'primary',
|
||||||
'config': {
|
'config': {
|
||||||
'content': (
|
'content': (
|
||||||
'This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing '
|
'This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing '
|
||||||
@ -128,7 +128,6 @@ DEFAULT_DASHBOARD = [
|
|||||||
'width': 12,
|
'width': 12,
|
||||||
'height': 5,
|
'height': 5,
|
||||||
'title': 'Change Log',
|
'title': 'Change Log',
|
||||||
'color': 'blue',
|
|
||||||
'config': {
|
'config': {
|
||||||
'model': 'core.objectchange',
|
'model': 'core.objectchange',
|
||||||
'page_size': 25,
|
'page_size': 25,
|
||||||
|
BIN
netbox/project-static/dist/netbox.css
vendored
BIN
netbox/project-static/dist/netbox.css
vendored
Binary file not shown.
@ -45,6 +45,7 @@ pre {
|
|||||||
@include color-mode(dark, true) {
|
@include color-mode(dark, true) {
|
||||||
--#{$prefix}alert-color: darken(var(--#{$prefix}warning),10%);
|
--#{$prefix}alert-color: darken(var(--#{$prefix}warning),10%);
|
||||||
--#{$prefix}link-color: #{$bright-teal};
|
--#{$prefix}link-color: #{$bright-teal};
|
||||||
|
--#{$prefix}primary-rgb: 0,242,212;
|
||||||
--#{$prefix}secondary: #{$gray-400};
|
--#{$prefix}secondary: #{$gray-400};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -69,6 +70,16 @@ pre {
|
|||||||
// Dark mode overrides
|
// Dark mode overrides
|
||||||
body[data-bs-theme=dark] {
|
body[data-bs-theme=dark] {
|
||||||
|
|
||||||
|
// Change content color when primary teal changes with theme
|
||||||
|
.bg-primary, {
|
||||||
|
.card-title,a,i {
|
||||||
|
color: $rich-black!important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.text-bg-primary {
|
||||||
|
color: $rich-black!important;
|
||||||
|
}
|
||||||
|
|
||||||
// Altering background colors
|
// Altering background colors
|
||||||
.card {
|
.card {
|
||||||
background: $rich-black!important;
|
background: $rich-black!important;
|
||||||
|
@ -65,12 +65,9 @@ body[data-bs-theme=dark] {
|
|||||||
|
|
||||||
// Adjust dark table link color without affecting buttons and badges
|
// Adjust dark table link color without affecting buttons and badges
|
||||||
table {
|
table {
|
||||||
a:not(.btn) {
|
a:not(.btn,.badge a) {
|
||||||
color: $bright-teal;
|
color: $bright-teal;
|
||||||
}
|
}
|
||||||
.badge a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
// Stops table headers from appearing as primary link color
|
// Stops table headers from appearing as primary link color
|
||||||
th.orderable a {
|
th.orderable a {
|
||||||
color: var(--#{$prefix}body-color);
|
color: var(--#{$prefix}body-color);
|
||||||
@ -79,7 +76,7 @@ body[data-bs-theme=dark] {
|
|||||||
|
|
||||||
table.object-list {
|
table.object-list {
|
||||||
a {
|
a {
|
||||||
color: var(--#{$prefix}body-color);
|
color: var(--#{$prefix}body-color)!important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user