Added mini-look to the opacity slider in the cel property dialog.

This commit is contained in:
David Capello 2010-03-21 22:36:17 -03:00
parent 4c5ea8f429
commit bb4da37e51

View File

@ -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"));