mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 19:13:29 +00:00
Draw background layer with an underline
This commit is contained in:
parent
7391355184
commit
d1f3ea307c
@ -1197,6 +1197,17 @@ void Timeline::drawLayer(ui::Graphics* g, LayerIndex layerIdx)
|
||||
(hotlayer && m_hot.part == PART_LAYER_TEXT),
|
||||
(clklayer && m_clk.part == PART_LAYER_TEXT));
|
||||
|
||||
if (layer->isBackground()) {
|
||||
int s = ui::guiscale();
|
||||
g->fillRect(
|
||||
is_active ?
|
||||
skinTheme()->colors.timelineClickedText():
|
||||
skinTheme()->colors.timelineNormalText(),
|
||||
gfx::Rect(bounds.x+4*s,
|
||||
bounds.y+bounds.h-2*s,
|
||||
getFont()->textLength(layer->name().c_str()), s));
|
||||
}
|
||||
|
||||
// If this layer wasn't clicked but there are another layer clicked,
|
||||
// we have to draw some indicators to show that the user can move
|
||||
// layers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user