(feat) Configurable Web animation level

This commit is contained in:
Francis Lachapelle
2017-04-25 16:35:39 -04:00
parent 59dbef5ee7
commit 663a0b60dd
7 changed files with 60 additions and 9 deletions

View File

@@ -87,6 +87,7 @@
SOGoExternalAvatarsEnabled = YES;
SOGoGravatarEnabled = NO;
SOGoAlternateAvatar = "none";
SOGoAnimationMode = "normal";
SOGoIMAPServer = "localhost";
SOGoMailDomain = "localhost";

View File

@@ -1,6 +1,6 @@
/* SOGoUserDefaults.h - this file is part of SOGo
*
* Copyright (C) 2011-2016 Inverse inc.
* Copyright (C) 2011-2017 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -130,6 +130,9 @@ extern NSString *SOGoWeekStartFirstFullWeek;
- (void) setAlternateAvatar: (NSString *) newValue;
- (NSString *) alternateAvatar;
- (void) setAnimationMode: (NSString *) newValue;
- (NSString *) animationMode;
- (void) setMailComposeMessageType: (NSString *) newValue;
- (NSString *) mailComposeMessageType;

View File

@@ -1,6 +1,6 @@
/* SOGoUserDefaults.m - this file is part of SOGo
*
* Copyright (C) 2009-2016 Inverse inc.
* Copyright (C) 2009-2017 Inverse inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -494,7 +494,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
return [self stringArrayForKey: @"SOGoMailListViewColumnsOrder"];
}
- (void) setSelectedAddressBook:(NSString *) newValue
- (void) setSelectedAddressBook: (NSString *) newValue
{
[self setObject: newValue forKey: @"SOGoSelectedAddressBook"];
}
@@ -529,6 +529,19 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
return [self stringForKey: @"SOGoAlternateAvatar"];
}
- (void) setAnimationMode: (NSString *) newValue
{
if ([newValue isEqualToString: @"normal"] ||
[newValue isEqualToString: @"limited"] ||
[newValue isEqualToString: @"none"])
[self setObject: newValue forKey: @"SOGoAnimationMode"];
}
- (NSString *) animationMode
{
return [self stringForKey: @"SOGoAnimationMode"];
}
- (void) setMailComposeMessageType: (NSString *) newValue
{
[self setObject: newValue forKey: @"SOGoMailComposeMessageType"];