Kaydet (Commit) 4eb7f391 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky Kaydeden (comit) Caolán McNamara

fdo#68537 Correct icon and tooltip for background color

Just to close this bug, more changes are expected.

Change-Id: I1017481211a5a1b9219f02fed3af31be0399e27a
Reviewed-on: https://gerrit.libreoffice.org/8046Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst bfd6428f
...@@ -58,7 +58,7 @@ const char UNO_JUSTIFYPARA[] = ".uno:JustifyPara"; ...@@ -58,7 +58,7 @@ const char UNO_JUSTIFYPARA[] = ".uno:JustifyPara";
const char UNO_DEFAULTBULLET[] = ".uno:DefaultBullet"; const char UNO_DEFAULTBULLET[] = ".uno:DefaultBullet";
const char UNO_DEFAULTNUMBERING[] = ".uno:DefaultNumbering"; const char UNO_DEFAULTNUMBERING[] = ".uno:DefaultNumbering";
const char UNO_PARABACKCOLOR[] = ".uno:ParaBackColor"; const char UNO_PARABACKCOLOR[] = ".uno:BackgroundColor";
const char UNO_INCREMENTINDENT[] = ".uno:IncrementIndent"; const char UNO_INCREMENTINDENT[] = ".uno:IncrementIndent";
const char UNO_DECREMENTINDENT[] = ".uno:DecrementIndent"; const char UNO_DECREMENTINDENT[] = ".uno:DecrementIndent";
...@@ -345,7 +345,6 @@ void ParaPropertyPanel::InitToolBoxBGColor() ...@@ -345,7 +345,6 @@ void ParaPropertyPanel::InitToolBoxBGColor()
{ {
const sal_uInt16 nIdBackColor = mpTBxBackColor->GetItemId(UNO_PARABACKCOLOR); const sal_uInt16 nIdBackColor = mpTBxBackColor->GetItemId(UNO_PARABACKCOLOR);
mpTBxBackColor->SetItemImage(nIdBackColor, GetDisplayBackground().GetColor().IsDark()? maImgBackColorHigh : maImgBackColor);
mpColorUpdater.reset(new ::svx::ToolboxButtonColorUpdater(0 /* not defined, default is transparent */, nIdBackColor, mpTBxBackColor)); mpColorUpdater.reset(new ::svx::ToolboxButtonColorUpdater(0 /* not defined, default is transparent */, nIdBackColor, mpTBxBackColor));
mpTBxBackColor->SetItemBits( nIdBackColor, mpTBxBackColor->GetItemBits( nIdBackColor ) | TIB_DROPDOWNONLY ); mpTBxBackColor->SetItemBits( nIdBackColor, mpTBxBackColor->GetItemBits( nIdBackColor ) | TIB_DROPDOWNONLY );
...@@ -1439,8 +1438,6 @@ ParaPropertyPanel::ParaPropertyPanel(Window* pParent, ...@@ -1439,8 +1438,6 @@ ParaPropertyPanel::ParaPropertyPanel(Window* pParent,
maIndHang (SVX_RES(IMG_INDENT_HANG)), maIndHang (SVX_RES(IMG_INDENT_HANG)),
maNumBImageList (SVX_RES(IL_NUM_BULLET)), maNumBImageList (SVX_RES(IL_NUM_BULLET)),
maNumBImageListRTL (SVX_RES(IL_NUM_BULLET_RTL)), maNumBImageListRTL (SVX_RES(IL_NUM_BULLET_RTL)),
maImgBackColorHigh (SVX_RES(IMG_BACK_COLOR_H)),
maImgBackColor (SVX_RES(IMG_BACK_COLOR)),
maTxtLeft (0), maTxtLeft (0),
mpLnSPItem (NULL), mpLnSPItem (NULL),
meLnSpState (SFX_ITEM_DONTCARE), meLnSpState (SFX_ITEM_DONTCARE),
......
...@@ -18,22 +18,20 @@ ...@@ -18,22 +18,20 @@
#include "svx/dialogs.hrc" #include "svx/dialogs.hrc"
#define IMG_BACK_COLOR (RID_SVX_SIDEBAR_BEGIN + 0) #define IMG_SPACE3 (RID_SVX_SIDEBAR_BEGIN + 0)
#define IMG_BACK_COLOR_H (RID_SVX_SIDEBAR_BEGIN + 1) #define IMG_INDENT_HANG (RID_SVX_SIDEBAR_BEGIN + 1)
#define IMG_SPACE3 (RID_SVX_SIDEBAR_BEGIN + 2) #define IMG_SPACING1 (RID_SVX_SIDEBAR_BEGIN + 2)
#define IMG_INDENT_HANG (RID_SVX_SIDEBAR_BEGIN + 3) #define IMG_SPACING115 (RID_SVX_SIDEBAR_BEGIN + 3)
#define IMG_SPACING1 (RID_SVX_SIDEBAR_BEGIN + 4) #define IMG_SPACING15 (RID_SVX_SIDEBAR_BEGIN + 4)
#define IMG_SPACING115 (RID_SVX_SIDEBAR_BEGIN + 5) #define IMG_SPACING2 (RID_SVX_SIDEBAR_BEGIN + 5)
#define IMG_SPACING15 (RID_SVX_SIDEBAR_BEGIN + 6) #define IMG_SEL_SPACING1 (RID_SVX_SIDEBAR_BEGIN + 6)
#define IMG_SPACING2 (RID_SVX_SIDEBAR_BEGIN + 7) #define IMG_SEL_SPACING115 (RID_SVX_SIDEBAR_BEGIN + 7)
#define IMG_SEL_SPACING1 (RID_SVX_SIDEBAR_BEGIN + 8) #define IMG_SEL_SPACING15 (RID_SVX_SIDEBAR_BEGIN + 8)
#define IMG_SEL_SPACING115 (RID_SVX_SIDEBAR_BEGIN + 9) #define IMG_SEL_SPACING2 (RID_SVX_SIDEBAR_BEGIN + 9)
#define IMG_SEL_SPACING15 (RID_SVX_SIDEBAR_BEGIN + 10) #define IMG_CUSTOM (RID_SVX_SIDEBAR_BEGIN + 10)
#define IMG_SEL_SPACING2 (RID_SVX_SIDEBAR_BEGIN + 11) #define IMG_CUSTOM_GRAY (RID_SVX_SIDEBAR_BEGIN + 11)
#define IMG_CUSTOM (RID_SVX_SIDEBAR_BEGIN + 12) #define IL_NUM_BULLET (RID_SVX_SIDEBAR_BEGIN + 12)
#define IMG_CUSTOM_GRAY (RID_SVX_SIDEBAR_BEGIN + 13) #define IL_NUM_BULLET_RTL (RID_SVX_SIDEBAR_BEGIN + 13)
#define IL_NUM_BULLET (RID_SVX_SIDEBAR_BEGIN + 14)
#define IL_NUM_BULLET_RTL (RID_SVX_SIDEBAR_BEGIN + 15)
//for numbering and bullet //for numbering and bullet
#define IID_BULLET 1 #define IID_BULLET 1
......
...@@ -123,8 +123,6 @@ private: ...@@ -123,8 +123,6 @@ private:
ImageList maNumBImageList; ImageList maNumBImageList;
ImageList maNumBImageListRTL; ImageList maNumBImageListRTL;
Image maImgBackColorHigh;
Image maImgBackColor;
/**************************************************************** /****************************************************************
** **
......
...@@ -47,14 +47,6 @@ ...@@ -47,14 +47,6 @@
}; \ }; \
IdCount = { 2 ; }; IdCount = { 2 ; };
Image IMG_BACK_COLOR
{
ImageBitmap = Bitmap{File = "symphony/sc_backgroundcolor.png";};
};
Image IMG_BACK_COLOR_H
{
ImageBitmap = Bitmap{File = "symphony/sch_backgroundcolor.png";};
};
Image IMG_SPACE3 Image IMG_SPACE3
{ {
ImageBitmap = Bitmap{File = "symphony/spacing3.png";}; ImageBitmap = Bitmap{File = "symphony/spacing3.png";};
......
...@@ -80,10 +80,7 @@ ...@@ -80,10 +80,7 @@
<property name="width_request">105</property> <property name="width_request">105</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="has_tooltip">True</property> <property name="action_name">.uno:BackgroundColor</property>
<property name="tooltip_markup" translatable="yes">Paragraph Background Color</property>
<property name="tooltip_text" translatable="yes">Paragraph Background Color</property>
<property name="action_name">.uno:ParaBackColor</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment