mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Added mini-look to the opacity slider in the cel property dialog.
This commit is contained in:
parent
4c5ea8f429
commit
bb4da37e51
@ -21,12 +21,14 @@
|
||||
#include <allegro/unicode.h>
|
||||
|
||||
#include "jinete/jinete.h"
|
||||
#include "Vaca/SharedPtr.h"
|
||||
|
||||
#include "commands/command.h"
|
||||
#include "sprite_wrappers.h"
|
||||
#include "app.h"
|
||||
#include "core/core.h"
|
||||
#include "modules/gui.h"
|
||||
#include "modules/skinneable_theme.h"
|
||||
#include "raster/cel.h"
|
||||
#include "raster/image.h"
|
||||
#include "raster/layer.h"
|
||||
@ -84,6 +86,11 @@ void CelPropertiesCommand::execute(Context* context)
|
||||
"opacity", &slider_opacity,
|
||||
"ok", &button_ok, NULL);
|
||||
|
||||
// Mini look for the opacity slider
|
||||
Vaca::SharedPtr<SkinProperty> skinProp(new SkinProperty);
|
||||
skinProp->setMiniLook(true);
|
||||
slider_opacity->setProperty(skinProp);
|
||||
|
||||
/* if the layer isn't writable */
|
||||
if (!layer->is_writable()) {
|
||||
button_ok->setText(_("Locked"));
|
||||
|
Loading…
Reference in New Issue
Block a user