[python] Change app name and icon

Change-Id: I0c505d08a464d63200bd5e1e0dc81825632691e5
This commit is contained in:
Émilie Feral
2017-08-09 16:41:00 +02:00
parent 68cd3f4574
commit bb5523b747
6 changed files with 15 additions and 4 deletions

View File

@@ -2,3 +2,5 @@ app_objs += $(addprefix apps/code/,\
app.o\
editor_controller.o\
)
app_images += apps/code/code_icon.png

View File

@@ -1,15 +1,20 @@
#include "app.h"
#include "../apps_container.h"
#include "code_icon.h"
#include <assert.h>
namespace Code {
I18n::Message App::Descriptor::name() {
return I18n::Message::Matrices;
return I18n::Message::CodeApp;
}
I18n::Message App::Descriptor::upperName() {
return I18n::Message::Matrices;
return I18n::Message::CodeAppCapital;
}
const Image * App::Descriptor::icon() {
return ImageStore::CodeIcon;
}
App * App::Snapshot::unpack(Container * container) {

View File

@@ -12,7 +12,7 @@ public:
public:
I18n::Message name() override;
I18n::Message upperName() override;
//const Image * icon() override;
const Image * icon() override;
};
class Snapshot : public ::App::Snapshot {
public:

BIN
apps/code/code_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -307,8 +307,10 @@ constexpr static char leftIntegralFirstLegend[] = {'P', '(', 'X', Ion::Charset::
constexpr static char finiteIntegralLegend[] = {Ion::Charset::LessEqual, 'X', Ion::Charset::LessEqual, 0};
const char * universalMessages[239] {
const char * universalMessages[241] {
"",
"Python",
"PYTHON (BETA)",
"alpha",
"ALPHA",
"x",

View File

@@ -263,6 +263,8 @@ namespace I18n {
/* UNIVERSAL MESSAGES */
Default = 0x8000,
CodeApp,
CodeAppCapital,
Alpha,
CapitalAlpha,
X,