mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
As 2.x takes longer as planned, I added the SpeechbubbleContainer and StepLabelContainer (Enumerable label) to the 1.2 branch. This code was stored somewhere on my hard-drive, is still experimental.
This commit is contained in:
parent
01ce82dbeb
commit
ff3f898f54
21 changed files with 648 additions and 166 deletions
|
@ -32,13 +32,17 @@ namespace Greenshot.Drawing {
|
|||
[Serializable]
|
||||
public class HighlightContainer : FilterContainer {
|
||||
public HighlightContainer(Surface parent) : base(parent) {
|
||||
AddField(GetType(), FieldType.LINE_THICKNESS, 0);
|
||||
AddField(GetType(), FieldType.LINE_COLOR, Color.Red);
|
||||
AddField(GetType(), FieldType.SHADOW, false);
|
||||
AddField(GetType(), FieldType.PREPARED_FILTER_HIGHLIGHT, PreparedFilter.TEXT_HIGHTLIGHT);
|
||||
Init();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Use settings from base, extend with our own field
|
||||
/// </summary>
|
||||
protected override void InitializeFields() {
|
||||
base.InitializeFields();
|
||||
AddField(GetType(), FieldType.PREPARED_FILTER_HIGHLIGHT, PreparedFilter.TEXT_HIGHTLIGHT);
|
||||
}
|
||||
|
||||
[OnDeserialized]
|
||||
private void OnDeserialized(StreamingContext context) {
|
||||
Init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue