mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Tooltip for indexer and program plugin (#4589)
* Fix multiline title issue * Added code to display tooltip for program and indexer plugin * Added tests for Result class * Theme based color for tooltip * Added colors for tooltip * Added string tags to tooltip * Add initial show delay * Seperated textbox for title and path
This commit is contained in:
committed by
GitHub
parent
1533c9315f
commit
8d72bc0ea4
21
src/modules/launcher/Wox.Plugin/ToolTipData.cs
Normal file
21
src/modules/launcher/Wox.Plugin/ToolTipData.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Wox.Plugin
|
||||
{
|
||||
public class ToolTipData
|
||||
{
|
||||
public string Title { get; private set; }
|
||||
|
||||
public string Text { get; private set; }
|
||||
|
||||
public ToolTipData(string title, string text)
|
||||
{
|
||||
if(string.IsNullOrEmpty(title))
|
||||
{
|
||||
throw new ArgumentException("title cannot be null or empty", "title");
|
||||
}
|
||||
Title = title;
|
||||
Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user