Skip to content

Commit

Permalink
Replace usingVisionImpairedPalette by the new usingHighContrastStyleS…
Browse files Browse the repository at this point in the history
…heet
  • Loading branch information
imobachgs committed Oct 11, 2016
1 parent 84d6316 commit eb5bf97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/YQPkgGenericDetailsView.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#include "YQPkgGenericDetailsView.h"
#include "YQi18n.h"
#include "YQUI.h"
#include "utf8.h"
#include "QY2Styler.h"

using std::string;

Expand Down Expand Up @@ -165,7 +165,7 @@ YQPkgGenericDetailsView::htmlHeading( ZyppSel selectable, bool showVersion )

QString html = "<table";

if ( ! YQUI::ui()->usingVisionImpairedPalette() )
if ( ! QY2Styler::styler()->usingHighContrastStyleSheet() )
html += " class=\"stats\"";

html += "><tr><td><b>"
Expand Down Expand Up @@ -203,7 +203,7 @@ QString
YQPkgGenericDetailsView::table( const QString & contents )
{
QString html = "<table";
if ( ! YQUI::ui()->usingVisionImpairedPalette() )
if ( ! QY2Styler::styler()->usingHighContrastStyleSheet() )
html += " class=\"stats\"";

html += ">" + contents + "</table>";
Expand Down

0 comments on commit eb5bf97

Please sign in to comment.