FirasH
2015-11-21 20:33
reporter
|
|
|
FirasH
2015-11-21 20:34
reporter
|
13549-Patch.diff (1,756 bytes)
diff --git a/scribus/ui/outlinepalette.cpp b/scribus/ui/outlinepalette.cpp
--- a/scribus/ui/outlinepalette.cpp
+++ b/scribus/ui/outlinepalette.cpp
@@ -457,6 +457,8 @@
textIcon = im->loadPixmap("22/insert-text-frame.png");
polylineIcon = im->loadPixmap("22/draw-path.png");
polygonIcon = im->loadPixmap("22/draw-polygon.png");
+ arcIcon = im->loadPixmap("22/draw-arc.png");
+ spiralIcon = im->loadPixmap("22/draw-spiral.png");
tableIcon = im->loadPixmap("22/insert-table.png");
groupIcon = im->loadPixmap("u_group.png");
buttonIcon = im->loadPixmap("22/insert-button.png");
@@ -834,12 +836,16 @@
item->setIcon( 0, lineIcon );
break;
case PageItem::Arc:
+ item->setIcon( 0, arcIcon );
+ break;
+ case PageItem::Spiral:
+ item->setIcon( 0, spiralIcon );
+ break;
case PageItem::Polygon:
case PageItem::RegularPolygon:
item->setIcon( 0, polygonIcon );
break;
case PageItem::PolyLine:
- case PageItem::Spiral:
item->setIcon( 0, polylineIcon );
break;
case PageItem::PathText:
diff --git a/scribus/ui/outlinepalette.h b/scribus/ui/outlinepalette.h
--- a/scribus/ui/outlinepalette.h
+++ b/scribus/ui/outlinepalette.h
@@ -109,14 +109,15 @@
QLabel* filterLabel;
QLineEdit* filterEdit;
ScribusMainWindow* m_MainWindow;
+ QPixmap textIcon;
QPixmap imageIcon;
QPixmap latexIcon;
- QPixmap textIcon;
+ QPixmap tableIcon;
QPixmap lineIcon;
QPixmap polygonIcon;
+ QPixmap arcIcon;
+ QPixmap spiralIcon;
QPixmap polylineIcon;
- QPixmap groupIcon;
- QPixmap tableIcon;
QPixmap buttonIcon;
QPixmap radiobuttonIcon;
QPixmap textFieldIcon;
@@ -126,6 +127,7 @@
QPixmap annotTextIcon;
QPixmap annotLinkIcon;
QPixmap annot3DIcon;
+ QPixmap groupIcon;
bool selectionTriggered;
ScribusDoc *currDoc;
};
|
|
|
At that point, the patch does not work so well, not because it is faulty, but because the 1.5.1 icon theme is incomplete : the 22/draw-arc.png and 22/draw-spiral.png files are available, but the images they contain are fully transparent. |
|
|
Ok, we will wait till 1.5.1 theme is mostly completed. |
|
|
we need to ping dezso |
|
|
The adequate icons being now available in 1.5.1 icon set, I committed the patch. Thanks! |
|
|
Thanks jghali!
Committed in 1.5.3.svn (21889). |
|