mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Merge branch 'main' into beta
This commit is contained in:
commit
05bf34f084
@ -519,6 +519,10 @@
|
||||
<background color="tooltip_face" />
|
||||
<text color="tooltip_text" align="left" />
|
||||
</style>
|
||||
<style id="textbox_text" align="left top wordwrap" border="4">
|
||||
<background color="textbox_face" />
|
||||
<text color="textbox_text" align="left" />
|
||||
</style>
|
||||
<style id="label" padding="1">
|
||||
<text color="text" align="left" />
|
||||
<text color="disabled" align="left" state="disabled" />
|
||||
|
@ -512,6 +512,10 @@
|
||||
<background color="tooltip_face" />
|
||||
<text color="tooltip_text" align="left" />
|
||||
</style>
|
||||
<style id="textbox_text" align="left top wordwrap" border="4">
|
||||
<background color="textbox_face" />
|
||||
<text color="textbox_text" align="left" />
|
||||
</style>
|
||||
<style id="label" padding="1">
|
||||
<text color="text" align="left" />
|
||||
<text color="disabled" align="left" state="disabled" />
|
||||
|
@ -913,9 +913,8 @@ void SkinTheme::initWidget(Widget* widget)
|
||||
break;
|
||||
|
||||
case kTextBoxWidget:
|
||||
BORDER(4*guiscale());
|
||||
widget->setChildSpacing(0);
|
||||
widget->setBgColor(colors.textboxFace());
|
||||
widget->setStyle(styles.textboxText());
|
||||
break;
|
||||
|
||||
case kViewWidget:
|
||||
|
@ -1931,7 +1931,7 @@ bool Manager::sendMessageToWidget(Message* msg, Widget* widget)
|
||||
// Restore overlays in the region that we're going to paint.
|
||||
OverlayManager::instance()->restoreOverlappedAreas(paintMsg->rect());
|
||||
|
||||
os::Surface* surface = display->surface();
|
||||
os::SurfaceRef surface(base::AddRef(display->surface()));
|
||||
surface->saveClip();
|
||||
|
||||
if (surface->clipRect(paintMsg->rect())) {
|
||||
|
@ -294,10 +294,9 @@ void Theme::paintTooltip(Graphics* g,
|
||||
}
|
||||
}
|
||||
|
||||
gfx::Size Theme::paintTextBoxWithStyle(Graphics* g,
|
||||
void Theme::paintTextBoxWithStyle(Graphics* g,
|
||||
const Widget* widget)
|
||||
{
|
||||
gfx::Size size;
|
||||
gfx::Color bg = gfx::ColorNone, fg = gfx::ColorNone;
|
||||
|
||||
for_each_layer(
|
||||
@ -311,9 +310,7 @@ gfx::Size Theme::paintTextBoxWithStyle(Graphics* g,
|
||||
});
|
||||
|
||||
if (fg != gfx::ColorNone)
|
||||
Theme::drawTextBox(g, widget, &size.w, &size.h, bg, fg);
|
||||
|
||||
return size;
|
||||
Theme::drawTextBox(g, widget, nullptr, nullptr, bg, fg);
|
||||
}
|
||||
|
||||
void Theme::paintLayer(Graphics* g,
|
||||
|
@ -101,7 +101,7 @@ namespace ui {
|
||||
const int arrowAlign,
|
||||
const gfx::Rect& target);
|
||||
|
||||
gfx::Size paintTextBoxWithStyle(Graphics* g,
|
||||
void paintTextBoxWithStyle(Graphics* g,
|
||||
const Widget* widget);
|
||||
|
||||
virtual gfx::Size calcSizeHint(const Widget* widget,
|
||||
|
Loading…
x
Reference in New Issue
Block a user