refactor(ui/notify): Cleanup internal code & new config options

This commit is contained in:
Taso
2021-10-13 19:39:59 -04:00
parent 57e895de19
commit e719bc6569
7 changed files with 202 additions and 43 deletions
+34
View File
@@ -33,3 +33,37 @@ QBConfig.Server.uptime = 0 -- Time the server has been up.
QBConfig.Server.whitelist = false -- Enable or disable whitelist on the server
QBConfig.Server.discord = "" -- Discord invite link
QBConfig.Server.PermissionList = {} -- permission list
QBConfig.Notify = {}
QBConfig.Notify.NotificationStyling = {
group = false, -- Allow notifications to stack with a badge instead of repeating
position = "right", -- top-left | top-right | bottom-left | bottom-right | top | bottom | left | right | center
progress = true -- Display Progress Bar
}
-- These are how you define different notification variants
-- The "color" key is background of the notification
-- The "icon" key is the css-icon code, this project uses `Material Icons` & `Font Awesome`
QBconfig.Notify.VariantDefinitions = {
success = {
color = 'green',
icon = 'done'
},
primary = {
color = 'blue',
icon = 'info'
},
error = {
color = 'red',
icon = 'dangerous'
},
police = {
color = 'blue',
icon = 'local_police'
},
ambulance = {
color = 'red',
icon = 'fas fa-ambulance'
}
}