ui: Fixes for upcoming release

* improved comment colors in all color schemes
* improved contrasts for dark color scheme
* fixed error locations stay visible when activating file in single file view
* removed scroll speed change listener from search autocompletion because it caused slowdown on macOS
* fixed bounding rects of graph edges to contain arrow
* fixed tooltip list shown with just one element
This commit is contained in:
Eberhard Graether
2017-08-03 16:15:27 +02:00
parent 9e06323ba7
commit 299b3a1cf7
10 changed files with 33 additions and 19 deletions
@@ -314,7 +314,10 @@ void CodeController::handleMessage(MessageShowErrors* message)
std::sort(snippets.begin(), snippets.end(), CodeSnippetParams::sortById);
expandVisibleSnippets(&snippets, false);
if (view->isInListMode())
{
expandVisibleSnippets(&snippets, false);
}
CodeView::CodeParams params;
params.clearSnippets = true;
@@ -5,6 +5,7 @@
#include "component/view/TooltipView.h"
#include "data/access/StorageAccess.h"
#include "utility/messaging/type/MessageActivateSourceLocations.h"
#include "utility/scheduling/TaskDecoratorDelay.h"
#include "utility/scheduling/TaskLambda.h"
@@ -83,7 +84,13 @@ void TooltipController::handleMessage(MessageTooltipShow* message)
TooltipInfo info = m_storageAccess->getTooltipInfoForSourceLocationIdsAndLocalSymbolIds(
message->sourceLocationIds, message->localSymbolIds);
if (info.snippets.size())
// If a tooltip list would only display one token, then just activate it instead.
// This can happen when edges pointing to the token use the same source location e.g. override edges
if (info.snippets.size() == 1)
{
MessageActivateSourceLocations(message->sourceLocationIds).dispatch();
}
else if (info.snippets.size())
{
getView()->showTooltip(info, getViewForOrigin(message->origin));
@@ -15,6 +15,7 @@ public:
, origin(origin)
{
setSendAsTask(false);
setIsLogged(false);
}
MessageTooltipShow(const std::vector<Id>& sourceLocationIds, const std::vector<Id>& localSymbolIds, TooltipOrigin origin)
@@ -23,6 +24,7 @@ public:
, origin(origin)
{
setSendAsTask(false);
setIsLogged(false);
}
static const std::string getStaticType()