mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Set RGBA has the default color mode for new sprites
This commit is contained in:
parent
9d4c5aaea3
commit
6d532e56c5
@ -13,11 +13,11 @@
|
||||
</grid>
|
||||
|
||||
<separator text="Color Mode:" left="true" horizontal="true" />
|
||||
<box vertical="true" homogeneous="true" childspacing="0">
|
||||
<radio id="indexed_mode" text="&Indexed color" group="1" tooltip="Using a palette of 256 colors (8 bits per pixel)" />
|
||||
<radio id="rgb_mode" text="&RGB color" group="1" tooltip="RGBA color mode (32 bits per pixel)" />
|
||||
<radio id="grayscale_mode" text="&Grayscale" group="1" tooltip="Value and Alpha (16 bits per pixel)" />
|
||||
</box>
|
||||
<hbox>
|
||||
<radio id="rgb_mode" text="&RGBA" group="1" tooltip="Each pixel has Red, Green, Blue, and Alpha components (32 bits per pixel)" />
|
||||
<radio id="grayscale_mode" text="&Grayscale" group="1" tooltip="Each pixel has a Gray value and Alpha (16 bits per pixel)" />
|
||||
<radio id="indexed_mode" text="&Indexed" group="1" tooltip="Each pixel is a reference to the palette (8 bits per pixel)" />
|
||||
</hbox>
|
||||
|
||||
<separator text="Background:" left="true" horizontal="true" />
|
||||
<view maxsize="true" expansive="true">
|
||||
|
@ -75,7 +75,7 @@ void NewFileCommand::onExecute(Context* context)
|
||||
app::gen::NewSprite window;
|
||||
|
||||
// Default values: Indexed, 320x240, Background color
|
||||
format = static_cast<PixelFormat>(get_config_int("NewSprite", "Type", IMAGE_INDEXED));
|
||||
format = static_cast<PixelFormat>(get_config_int("NewSprite", "Type", IMAGE_RGB));
|
||||
// Invalid format in config file.
|
||||
if (format != IMAGE_RGB && format != IMAGE_INDEXED && format != IMAGE_GRAYSCALE) {
|
||||
format = IMAGE_INDEXED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user