import * as os from 'os' ; import { version } from '../version.generated' ; export const SPOTIFY_API_URL = 'https://api.spotify.com/v1' ; export const WINDOWS = os . platform ( ) === 'win32' ; export const LINUX = os . platform ( ) === 'linux' ; export const MACOS = os . platform ( ) === 'darwin' ; export const MACOS_MOJAVE_AND_NEWER = MACOS && parseInt ( os . release ( ) . split ( '.' ) [ 0 ] ) >= 18 ; export const HEIGHT = 150 ; export const WIDTH = 150 ; export const MIN_SIDE_LENGTH = 150 ; export const MAX_SIDE_LENGTH = 300 ; export const MAX_BAR_THICKNESS = 20 ; export const LOFI_SHUFFLED_PLAYLIST_NAME = 'Shuffled by Lofi' ; export const CONTAINER = { VERTICAL : MACOS_MOJAVE_AND_NEWER ? 4000 : 800 , HORIZONTAL : MACOS_MOJAVE_AND_NEWER ? 4000 : 800 , } ; export const SETTINGS_CONTAINER = { VERTICAL : 500 , HORIZONTAL : 500 , } ; export const DEFAULT_SETTINGS = { version : version , debug : false , hardware_acceleration : true , lofi : { visualization : 0 , window : { always_on_top : true , show_in_taskbar : true , x : 0 , y : 0 , hide : false , metadata : false , scale : 1 , side : 150 , show_progress : false , bar_thickness : 1 , } , audio : { volume_increment : 10 , display_volume_change : false , } , } , } ;