mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: change all '$expr' to '${expr}' (#16428)
This commit is contained in:
@@ -248,7 +248,7 @@ pub fn (c Color) eq(c2 Color) bool {
|
||||
|
||||
// str returns a string representation of the Color `c`
|
||||
pub fn (c Color) str() string {
|
||||
return 'Color{$c.r, $c.g, $c.b, $c.a}'
|
||||
return 'Color{${c.r}, ${c.g}, ${c.b}, ${c.a}}'
|
||||
}
|
||||
|
||||
// rgba8 - convert a color value to an int in the RGBA8 order.
|
||||
@@ -305,5 +305,5 @@ pub fn color_from_string(s string) Color {
|
||||
|
||||
// to_css_string returns a CSS compatible string e.g. `rgba(10,11,12,13)` of the color `c`.
|
||||
pub fn (c Color) to_css_string() string {
|
||||
return 'rgba($c.r,$c.g,$c.b,$c.a)'
|
||||
return 'rgba(${c.r},${c.g},${c.b},${c.a})'
|
||||
}
|
||||
|
@@ -31,5 +31,5 @@ pub fn (cfg TextCfg) to_css_string() string {
|
||||
if cfg.italic {
|
||||
font_style += 'italic '
|
||||
}
|
||||
return '$font_style ${cfg.size}px $cfg.family'
|
||||
return '${font_style} ${cfg.size}px ${cfg.family}'
|
||||
}
|
||||
|
Reference in New Issue
Block a user