mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-10-26 07:46:09 +01:00
Add themed icon
This commit is contained in:
@@ -25,3 +25,7 @@ Tree table
|
||||
https://stackoverflow.com/questions/5636375/how-to-create-a-collapsing-tree-table-in-html-css-js
|
||||
http://maxdesign.com.au/articles/tree-table/
|
||||
|
||||
|
||||
Image to Base64 conversion
|
||||
|
||||
https://stackoverflow.com/questions/6150289/how-to-convert-image-into-base64-string-using-javascript
|
||||
|
||||
@@ -116,12 +116,18 @@ void SysTrayXIcon::renderIcon()
|
||||
switch( m_icon_type )
|
||||
{
|
||||
case Preferences::PREF_BLANK_ICON:
|
||||
case Preferences::PREF_NEWMAIL_ICON:
|
||||
{
|
||||
pixmap = QPixmap( ":/files/icons/blank-icon.png" );
|
||||
break;
|
||||
}
|
||||
|
||||
case Preferences::PREF_NEWMAIL_ICON:
|
||||
{
|
||||
QIcon new_mail = QIcon::fromTheme("mail-unread", QIcon(":/files/icons/blank-icon.png"));
|
||||
pixmap = QPixmap( new_mail.pixmap( 256, 256 ) );
|
||||
break;
|
||||
}
|
||||
|
||||
case Preferences::PREF_CUSTOM_ICON:
|
||||
{
|
||||
pixmap.loadFromData( m_icon_data );
|
||||
|
||||
Reference in New Issue
Block a user