From 28665079a01d26345e1289f2eaaca3307f83ac29 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sun, 26 Jan 2014 22:24:29 -0800 Subject: Windows UI appearance fixes (font issue, etc.) and fix to WinSock init on GUI client. --- ZeroTierUI/networkwidget.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ZeroTierUI/networkwidget.cpp') diff --git a/ZeroTierUI/networkwidget.cpp b/ZeroTierUI/networkwidget.cpp index 8b0ec0a7..bdc18d92 100644 --- a/ZeroTierUI/networkwidget.cpp +++ b/ZeroTierUI/networkwidget.cpp @@ -36,6 +36,9 @@ #include #include #include +#include + +#include "../node/Constants.hpp" NetworkWidget::NetworkWidget(QWidget *parent,const std::string &nwid) : QWidget(parent), @@ -50,9 +53,20 @@ NetworkWidget::NetworkWidget(QWidget *parent,const std::string &nwid) : ui->ipListWidget->setMinimumHeight(lineHeight * 4); ui->ipListWidget->setMaximumHeight(lineHeight * 4); +#ifdef __APPLE__ QWidgetList widgets = this->findChildren(); foreach(QWidget* widget, widgets) widget->setAttribute(Qt::WA_MacShowFocusRect,false); +#endif + +#ifdef __WINDOWS__ + QWidgetList widgets = this->findChildren(); + foreach(QWidget *widget, widgets) { + QFont font(widget->font()); + font.setPointSizeF(font.pointSizeF() * 0.75); + widget->setFont(font); + } +#endif } NetworkWidget::~NetworkWidget() -- cgit v1.2.3