forked from qt-creator/qt-creator
Bookmarks: New Bookmark icon
Using Theme::Bookmarks_TextMarkColor so that it is consistent with the scrollbar markers. Change-Id: I2cd6b787a61c2a5bf3a7f684c026006ca0417591 Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
#include <projectexplorer/session.h>
|
#include <projectexplorer/session.h>
|
||||||
#include <texteditor/texteditor.h>
|
#include <texteditor/texteditor.h>
|
||||||
|
#include <utils/icon.h>
|
||||||
#include <utils/tooltip/tooltip.h>
|
#include <utils/tooltip/tooltip.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/checkablemessagebox.h>
|
#include <utils/checkablemessagebox.h>
|
||||||
@@ -318,7 +319,8 @@ void BookmarkView::gotoBookmark(const QModelIndex &index)
|
|||||||
////
|
////
|
||||||
|
|
||||||
BookmarkManager::BookmarkManager() :
|
BookmarkManager::BookmarkManager() :
|
||||||
m_bookmarkIcon(QLatin1String(":/bookmarks/images/bookmark.png")),
|
m_bookmarkIcon(Utils::Icon({{QLatin1String(":/bookmarks/images/bookmark.png"),
|
||||||
|
Theme::Bookmarks_TextMarkColor}}, Icon::Tint).pixmap()),
|
||||||
m_selectionModel(new QItemSelectionModel(this, this))
|
m_selectionModel(new QItemSelectionModel(this, this))
|
||||||
{
|
{
|
||||||
connect(ICore::instance(), &ICore::contextChanged,
|
connect(ICore::instance(), &ICore::contextChanged,
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/bookmarks" >
|
<qresource prefix="/bookmarks" >
|
||||||
<file>images/bookmark.png</file>
|
<file>images/bookmark.png</file>
|
||||||
|
<file>images/bookmark@2x.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 913 B After Width: | Height: | Size: 131 B |
BIN
src/plugins/bookmarks/images/bookmark@2x.png
Normal file
BIN
src/plugins/bookmarks/images/bookmark@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 B |
@@ -3106,7 +3106,7 @@
|
|||||||
style="fill:#ffffff;fill-opacity:1" />
|
style="fill:#ffffff;fill-opacity:1" />
|
||||||
<polygon
|
<polygon
|
||||||
transform="translate(402,208)"
|
transform="translate(402,208)"
|
||||||
id="polygon6780-6"
|
id="bookmarkribbon"
|
||||||
points="555,374 555,362 561,362 561,374 558,370 "
|
points="555,374 555,362 561,362 561,374 558,370 "
|
||||||
style="fill:#000000;fill-opacity:1" />
|
style="fill:#000000;fill-opacity:1" />
|
||||||
</g>
|
</g>
|
||||||
@@ -3146,6 +3146,25 @@
|
|||||||
cy="576"
|
cy="576"
|
||||||
r="6" />
|
r="6" />
|
||||||
</g>
|
</g>
|
||||||
|
<g
|
||||||
|
id="src/plugins/bookmarks/images/bookmark">
|
||||||
|
<rect
|
||||||
|
style="display:inline;fill:#ffffff;fill-opacity:1"
|
||||||
|
x="1016"
|
||||||
|
y="568"
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
id="rect6782-96-0" />
|
||||||
|
<use
|
||||||
|
transform="translate(61,0)"
|
||||||
|
height="100%"
|
||||||
|
width="100%"
|
||||||
|
id="use4979"
|
||||||
|
xlink:href="#bookmarkribbon"
|
||||||
|
y="0"
|
||||||
|
x="0"
|
||||||
|
style="display:inline" />
|
||||||
|
</g>
|
||||||
</g>
|
</g>
|
||||||
<g
|
<g
|
||||||
inkscape:groupmode="layer"
|
inkscape:groupmode="layer"
|
||||||
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 172 KiB |
Reference in New Issue
Block a user