Adjust warning-text default theme value

This commit is contained in:
Andreas Nedbal 2020-05-07 19:28:26 +02:00
parent 633f69c163
commit 1cc49cf03c
4 changed files with 4 additions and 3 deletions

View File

@ -81,7 +81,7 @@ $avatar-sizes: (
--primary-text: 255, 255, 255;
--danger-text: 255, 255, 255;
--warning-text: 255, 255, 255;
--warning-text: 41, 41, 41;
--info-text: 255, 255, 255;
--success-text: 255, 255, 255;
--dark-text: 255, 255, 255;

View File

@ -90,7 +90,7 @@
.col-sm-6
= f.text_field :warning_color, class: 'color', data: {default: 0xFFC107}
.col-sm-6
= f.text_field :warning_text, class: 'color', data: {default: 0xFFFFFF}
= f.text_field :warning_text, class: 'color', data: {default: 0x292929}
.col-sm-12
.alert.alert-warning
A simple warning alert—check it out!

View File

@ -34,6 +34,7 @@ class UpdateThemeFields < ActiveRecord::Migration[5.2]
change_column_default :themes, :background_color, 0xF0EDF4
change_column_default :themes, :danger_color, 0xDC3545
change_column_default :themes, :warning_color, 0xFFC107
change_column_default :themes, :warning_text, 0x292929
change_column_default :themes, :info_color, 0x17A2B8
change_column_default :themes, :success_color, 0x28A745
change_column_default :themes, :input_color, 0xF0EDF4

View File

@ -197,7 +197,7 @@ ActiveRecord::Schema.define(version: 2020_05_04_214933) do
t.integer "success_color", default: 2664261
t.integer "success_text", default: 16777215
t.integer "warning_color", default: 16761095
t.integer "warning_text", default: 16777215
t.integer "warning_text", default: 2697513
t.integer "info_color", default: 1548984
t.integer "info_text", default: 16777215
t.integer "dark_color", default: 3422784