[libcalamaresui] Provide access to the breeze SVGs
This commit is contained in:
parent
fbe1976c11
commit
65cf28b716
@ -1,6 +1,7 @@
|
|||||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
||||||
|
* Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -107,6 +108,18 @@ defaultPixmap( ImageType type, ImageMode mode, const QSize& size )
|
|||||||
case Squid:
|
case Squid:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/squid.svg", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/squid.svg", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case StatusOk:
|
||||||
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/state-ok.svg", size );
|
||||||
|
break;
|
||||||
|
|
||||||
|
case StatusWarning:
|
||||||
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/state-warning.svg", size );
|
||||||
|
break;
|
||||||
|
|
||||||
|
case StatusError:
|
||||||
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/state-error.svg", size );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pixmap.isNull() )
|
if ( pixmap.isNull() )
|
||||||
|
@ -55,7 +55,10 @@ enum ImageType : int
|
|||||||
PartitionReplaceOs,
|
PartitionReplaceOs,
|
||||||
PartitionTable,
|
PartitionTable,
|
||||||
BootEnvironment,
|
BootEnvironment,
|
||||||
Squid
|
Squid,
|
||||||
|
StatusOk, // Icons for the requirements checker
|
||||||
|
StatusWarning,
|
||||||
|
StatusError
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user