mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-07 02:25:29 -04:00
Improve contrast of name labels against their backgrounds
This commit is contained in:
parent
c00f436ab5
commit
6f63de5ec8
1 changed files with 5 additions and 5 deletions
|
@ -74,16 +74,16 @@ module.exports = class Label extends CocoClass
|
|||
o.marginY = {D: 6, S: 4, N: 3}[st]
|
||||
o.fontWeight = {D: 'bold', S: 'bold', N: 'bold'}[st]
|
||||
o.shadow = {D: false, S: true, N: true}[st]
|
||||
o.shadowColor = {D: '#FFF', S: '#000', N: '#FFF'}[st]
|
||||
o.shadowColor = {D: '#FFF', S: '#000', N: '#000'}[st]
|
||||
o.fontSize = {D: 25, S: 12, N: 24}[st]
|
||||
fontFamily = {D: 'Arial', S: 'Arial', N: 'Arial'}[st]
|
||||
o.fontDescriptor = "#{o.fontWeight} #{o.fontSize}px #{fontFamily}"
|
||||
o.fontColor = {D: '#000', S: '#FFF', N: '#0a0'}[st]
|
||||
o.fontColor = {D: '#000', S: '#FFF', N: '#6c6'}[st]
|
||||
if @style is 'name' and @sprite?.thang?.team is 'humans'
|
||||
o.fontColor = '#a00'
|
||||
o.fontColor = '#c66'
|
||||
else if @style is 'name' and @sprite?.thang?.team is 'ogres'
|
||||
o.fontColor = '#00a'
|
||||
o.backgroundFillColor = {D: 'white', S: 'rgba(0,0,0,0.4)', N: 'rgba(255,255,255,0.5)'}[st]
|
||||
o.fontColor = '#66c'
|
||||
o.backgroundFillColor = {D: 'white', S: 'rgba(0,0,0,0.4)', N: 'rgba(0,0,0,0.5)'}[st]
|
||||
o.backgroundStrokeColor = {D: 'black', S: 'rgba(0,0,0,0.6)', N: 'rgba(0,0,0,0)'}[st]
|
||||
o.backgroundStrokeStyle = {D: 2, S: 1, N: 1}[st]
|
||||
o.backgroundBorderRadius = {D: 10, S: 3, N: 3}[st]
|
||||
|
|
Loading…
Add table
Reference in a new issue