// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Defines the AppStyleHelper type. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Helpers { using System.Windows; using Caliburn.Micro; using HandBrakeWPF.Services.Interfaces; /// /// The AppStyle Helper. /// public class AppStyleHelper { /// /// Gets a value indicating whether use system colours. /// public static bool UseSystemColours { get { IUserSettingService userSettingService = IoC.Get(); bool useSystemColours = userSettingService.GetUserSetting(UserSettingConstants.UseSystemColours); return useSystemColours || SystemParameters.HighContrast; } } } }