Skip to content

Latest commit

 

History

History
1870 lines (1308 loc) · 37.3 KB

configurations.md

File metadata and controls

1870 lines (1308 loc) · 37.3 KB

Whisper Config Options (GlobalConfig and Profile)

There are two ways to update from the default configurations:

  1. Programmatically in code (not recommended in most cases).
  2. Updating and importing the whisper.yaml into your project (recommended).

Table of Contents


The starting point for each example is using the default settings found in root whisper.yaml

Demo of Change whisper.yaml or Code Change

pixelDensityUnit

The pixel density to use for all Whisper UI configuration fields (other than font size).
Options: DP, PX | Default: DP

pixelDensityUnit = dp

pixelDensityUnit: DP

or

Whisper.GlobalConfig.pixelDensityUnit = 
    Whisper.Enums.PixelDensity.DP

positionOnScreen

Location on screen where to display Whispers. Multiple Whispers visible at once will be positioned relative to this location in the order defined by sortOrder. Further adjustments can be made with Offset.x, Offset.y, and Offset.additionalOffsetForStatusBar.
Options: TOP_CENTER, TOP_LEFT, TOP_RIGHT, TOP_START, TOP_END, TOP_FULL | Default: TOP_LEFT

positionOnScreen = TOP_LEFT

positionOnScreen: TOP_LEFT

or

Whisper.GlobalConfig.positionOnScreen = 
    Whisper.Enums.PositionOnScreen.TOP_LEFT

positionOnScreen = TOP_CENTER

positionOnScreen: TOP_CENTER

or

Whisper.GlobalConfig.positionOnScreen = 
    Whisper.Enums.PositionOnScreen.TOP_CENTER

positionOnScreen = TOP_RIGHT

positionOnScreen: TOP_RIGHT

or

Whisper.GlobalConfig.positionOnScreen = 
    Whisper.Enums.PositionOnScreen.TOP_CENTOP_RIGHTTER

positionOnScreen = TOP_START

positionOnScreen: TOP_START

or

Whisper.GlobalConfig.positionOnScreen = 
    Whisper.Enums.PositionOnScreen.TOP_START

positionOnScreen = TOP_END

positionOnScreen: TOP_END

or

Whisper.GlobalConfig.positionOnScreen = 
    Whisper.Enums.PositionOnScreen.TOP_END

positionOnScreen = TOP_FULL

positionOnScreen: TOP_FULL

or

Whisper.GlobalConfig.positionOnScreen = 
    Whisper.Enums.PositionOnScreen.TOP_FULL

sortOrder

Relative position to display newer Whispers when more than one are visible on screen at once. See positionOnScreen for Whisper placement.
Options: ABOVE, BELOW | Default: BELOW

sortOrder = BELOW

sortOrder: BELOW

or

Whisper.GlobalConfig.sortOrder = 
    Whisper.Enums.SortOrder.BELOW

sortOrder = ABOVE

sortOrder: ABOVE

or

Whisper.GlobalConfig.sortOrder = 
    Whisper.Enums.SortOrder.ABOVE

maxVisible

Maximum number of Whispers visible on screen at once. If more Whispers exist than the defined value, excess Whispers will be invisible until the space is available.
Data Type: Integer. 0 for no maximum. | Default: 3

maxVisible = 2

maxVisible: 2

or

Whisper.GlobalConfig.maxVisible = 2

displaySpace

Space between each Whisper if multiple are displaying at once.
Data Type: Integer. Must be 0 or greater. | Default: 12

displaySpace = 50

displaySpace: 50

or

Whisper.GlobalConfig.displaySpace = 50

timeoutLengthPerCharacter

In milliseconds, the added auto-timeout length per character in the Whisper message. Value here in combination of text length determines the dynamic auto-timeout of each Whisper. Range will always be within durationDisplayMinimum and durationDisplayMaximum values. Auto-timeout will not be used for individual Whispers with an optional timeout value passed in.
Data Type: Long. Must be greater than 0. | Default: 75

timeoutLengthPerCharacter = 25

timeoutLengthPerCharacter: 25

or

Whisper.GlobalConfig.timeoutLengthPerCharacter = 25

timeoutLengthPerCharacter = 125

timeoutLengthPerCharacter: 125

or

Whisper.GlobalConfig.timeoutLengthPerCharacter = 125

durationDisplayMinimum

In milliseconds, the minimum duration a Whisper will be visible for before timing out. Applies if timeoutLengthPerCharacter value computes too short of a duration for auto-timeouts. Applies to individual Whispers with an optional timeout value passed in.
Data Type: Long. Must be 0 or greater. | Default: 2200

durationDisplayMinimum = 1000

durationDisplayMinimum: 1000

or

Whisper.GlobalConfig.durationDisplayMinimum = 1000

durationDisplayMinimum = 3000

durationDisplayMinimum: 3000

or

Whisper.GlobalConfig.durationDisplayMinimum = 3000

durationDisplayMaximum

In milliseconds, the maximum duration a Whisper will be visible for before timing out. Applies if timeoutLengthPerCharacter value computes too long of a duration for auto-timeouts. Does not apply to individual Whispers with an optional timeout value passed in.
Data Type: Long. Must be 0 or greater. | Default: 22000

durationDisplayMaximum = 2500

durationDisplayMaximum: 2500

or

Whisper.GlobalConfig.durationDisplayMaximum = 2500

animationTransitionDuration

In milliseconds, the value of all animation transitions. This includes fading in, fading out, and rearranging.
Data Type: Long. 0 for no animation. | Default: 400

animationTransitionDuration = 1500

animationTransitionDuration: 1500

or

Whisper.GlobalConfig.animationTransitionDuration = 1500

timeoutOnlyForOldestWhisper

When a timeout applies to a Whisper, timer is only activated to the oldest visible Whisper. Once the oldest Whisper is dismissed, the next visible Whisper's timer (set for an auto-close timeout) will begin. False will start a timer for each visible Whisper immediately (except for Whispers set to never timeout).
Options: true, false | Default: true

timeoutOnlyForOldestWhisper = true

timeoutOnlyForOldestWhisper: true

or

Whisper.GlobalConfig.timeoutOnlyForOldestWhisper = true

timeoutOnlyForOldestWhisper = false

timeoutOnlyForOldestWhisper: false

or

Whisper.GlobalConfig.timeoutOnlyForOldestWhisper = false

tapToDismiss

Ability to dismiss a Whisper immediately by tapping it.
Options: true, false | Default: true

tapToDismiss = true

tapToDismiss: true

or

Whisper.GlobalConfig.tapToDismiss = true

tapToDismiss = false

tapToDismiss: false

or

Whisper.GlobalConfig.tapToDismiss = false

Offset.x

Adds an X offset to positionOnScreen.
Data Type: Integer. Must be 0 or greater. | Default: 12

Offset.x = 60

Offset:
  x: 60

or

Whisper.GlobalConfig.offset.x = 60

Offset.y

Adds a Y offset to positionOnScreen.
Data Type: Integer. Must be 0 or greater. | Default: 12

Offset.y = 60

Offset:
  y: 60

or

Whisper.GlobalConfig.offset.y = 60

Offset.additionalOffsetForStatusBar

If the device's status bar is visible, applying a small Offset.y may appear to have no effect on the offset (if the positionOnScreen is intended to be below the status bar). By setting true, the device's status bar height is calculated and added to the Offset.y so it is properly accounted for.
Options: true, false | Default: true

Offset.additionalOffsetForStatusBar = false

Offset:
  y: 10
  additionalOffsetForStatusBar: false

or

Whisper.GlobalConfig.offset.y = 10
Whisper.GlobalConfig.offset.additionalOffsetForStatusBar = false

Profile.Sound.trigger

Video Example

When and what sound should play (if ever). If setting CUSTOM_SOLE_WHISPER or CUSTOM_EVERY_WHISPER, see Sound.customSound to use a custom sound.
Options: NEVER, DEVICE_SOLE_WHISPER, DEVICE_EVERY_WHISPER, CUSTOM_SOLE_WHISPER, CUSTOM_EVERY_WHISPER | Default: NEVER

Profile.Sound.trigger = DEVICE_EVERY_WHISPER

Profile:
  Sound:
    trigger: DEVICE_EVERY_WHISPER

or

Whisper.GlobalConfig.profile.sound.trigger = Whisper.Enums.TriggerSound.DEVICE_EVERY_WHISPER

Video Example

Profile.Sound.trigger = DEVICE_SOLE_WHISPER

Profile:
  Sound:
    trigger: DEVICE_SOLE_WHISPER

or

Whisper.GlobalConfig.profile.sound.trigger = Whisper.Enums.TriggerSound.DEVICE_SOLE_WHISPER

Profile.Sound.customSound

Video Example

Only used if Sound.trigger is CUSTOM_SOLE_WHISPER or CUSTOM_EVERY_WHISPER to play the externally added sound. Sound file must be in module's res/raw directory. Value here should be the sound file name without the extension.
Data Type: String (nullable). Example: src/main/res/raw/horn.mp3 -> "horn" | Default: null

Profile.Sound.customSound = "horn"

Profile.Sound.trigger = CUSTOM_EVERY_WHISPER

Profile:
  Sound:
    trigger: CUSTOM_EVERY_WHISPER
    customSound: "horn"

or

Whisper.GlobalConfig.profile.sound.trigger = Whisper.Enums.TriggerSound.CUSTOM_EVERY_WHISPER
Whisper.GlobalConfig.profile.sound.customSound = "horn"

Video Example

Profile.Sound.customSound = "horn"

Profile.Sound.trigger = CUSTOM_SOLE_WHISPER

Profile:
  Sound:
    trigger: CUSTOM_SOLE_WHISPER
    customSound: "horn"

or

Whisper.GlobalConfig.profile.sound.trigger = Whisper.Enums.TriggerSound.CUSTOM_SOLE_WHISPER
Whisper.GlobalConfig.profile.sound.customSound = "horn"

Profile.Vibrate

Video Example

trigger = EVERY_WHISPER

When to vibrate (if ever). If setting anything other than NEVER, see Vibrate.vibrationPattern to define a custom vibration pattern.
REQUIRED: The vibrate permission must be added in your module's manifest using Whisper for vibration to work.
Options: NEVER, SOLE_WHISPER, EVERY_WHISPER | Default: NEVER

vibrationPattern = [0, 100, 50, 100]

In milliseconds, vibration sequence of off/on/off/on... pattern if VibrateTemplate.trigger is not NEVER.
Data Type: Array of Longs | Default: 0, 100, 50, 100

Profile:
  Vibrate:
    trigger: EVERY_WHISPER
    vibrationPattern:
      - 0    # delay before vibrating in milliseconds
      - 100  # vibrate duration in milliseconds
      - 50   # delay before vibrating in milliseconds
      - 100  # vibrate duration in milliseconds
    # - Continue pattern if desired.

or

Whisper.GlobalConfig.profile.vibrate.trigger = Whisper.Enums.TriggerVibrate.EVERY_WHISPER
Whisper.GlobalConfig.profile.sound.customSound = longArrayOf(0, 100, 50, 100)

Video Example

trigger = SOLE_WHISPER

vibrationPattern = [0, 100, 50, 100]

Profile:
  Vibrate:
    trigger: SOLE_WHISPER
    vibrationPattern:
      - 0    # delay before vibrating in milliseconds
      - 100  # vibrate duration in milliseconds
      - 50   # delay before vibrating in milliseconds
      - 100  # vibrate duration in milliseconds
    # - Continue pattern if desired.

or

Whisper.GlobalConfig.profile.vibrate.trigger = Whisper.Enums.TriggerVibrate.EVERY_WHISPER
Whisper.GlobalConfig.profile.sound.customSound = longArrayOf(0, 100, 50, 100)

Profile.Design.Padding

Padding between Whisper edges (left, top, right, bottom) and text. This will make the overall Whisper size larger.
Data Type: Integer | Default for each side: 8, 8, 8, 8

left, top, right, bottom = 0

Profile:
  Design:
    Padding:
      left: 0
      top: 0
      right: 0
      bottom: 0

or

Whisper.GlobalConfig.profile.design.left = 0
Whisper.GlobalConfig.profile.design.top = 0
Whisper.GlobalConfig.profile.design.right = 0
Whisper.GlobalConfig.profile.design.bottom = 0

left, top, right, bottom = 15

Profile:
  Design:
    Padding:
      left: 15
      top: 15
      right: 15
      bottom: 15

or

Whisper.GlobalConfig.profile.design.padding.left = 15
Whisper.GlobalConfig.profile.design.padding.top = 15
Whisper.GlobalConfig.profile.design.padding.right = 15
Whisper.GlobalConfig.profile.design.padding.bottom = 15

Profile.Design.Text.color

Whisper text color.
Options: Value must be a 6 or 8 character color hex code as "RRGGBB" or "AARRGGBB". | Default: "FEFEFE"

color = "FF0000"

Profile:
  Design:
    Text:
      color: "FF0000"

or

Whisper.GlobalConfig.profile.design.text.color = "FF0000"

Profile.Design.Text.size

Whisper text size.
Data Type: Float | Default: 20.0

size = 30.0

Profile:
  Design:
    Text:
      size: 30.0

or

Whisper.GlobalConfig.profile.design.text.size = 30.0

Profile.Design.Text.gravity

Sets the horizontal alignment of a Whisper's text.
Options: LEFT, RIGHT, CENTER, START, END

Profile.Design.Text.gravity = LEFT

Profile:
  Design:
    Text:
      gravity: LEFT

or

Whisper.GlobalConfig.profile.design.text.gravity = Whisper.Enums.TextGravity.LEFT

Profile.Design.Text.gravity = RIGHT

Profile:
  Design:
    Text:
      gravity: RIGHT

or

Whisper.GlobalConfig.profile.design.text.gravity = Whisper.Enums.TextGravity.RIGHT

Profile.Design.Text.gravity = CENTER

Profile:
  Design:
    Text:
      gravity: CENTER

or

Whisper.GlobalConfig.profile.design.text.gravity = Whisper.Enums.TextGravity.CENTER

Profile.Design.Text.gravity = START

Profile:
  Design:
    Text:
      gravity: START

or

Whisper.GlobalConfig.profile.design.text.gravity = Whisper.Enums.TextGravity.START

Profile.Design.Text.gravity = END

Profile:
  Design:
    Text:
      gravity: END

or

Whisper.GlobalConfig.profile.design.text.gravity = Whisper.Enums.TextGravity.END

Profile.Design.Text.Font.bold

If text should be bolded.
Options: true, false | Default: false

Profile.Design.Text.Font.bold = true

Profile:
  Design:
    Text:
      Font:
        bold: true

or

Whisper.GlobalConfig.profile.design.text.font.bold = true

Profile.Design.Text.Font.italic

If text should be italicized.
Options: true, false | Default: false

Profile.Design.Text.Font.italic = true

Profile:
  Design:
    Text:
      Font:
        italic: true

or

Whisper.GlobalConfig.profile.design.text.font.italic = true

Profile.Design.Text.Font.underline

If text should be underlined.
Options: true, false | Default: false

Profile.Design.Text.Font.underline = true

Profile:
  Design:
    Text:
      Font:
        underline: true

or

Whisper.GlobalConfig.profile.design.text.font.underline = true

Profile.Design.Text.Font.fontFamily

.ttf or .otf fonts found in module's /assets/ can be used as the font family. Value here should be the font name with the extension (with the same casing as the file name).
Data Type: String (nullable). Example: src/main/assets/Miracode.ttf -> "Miracode.ttf" | Default: null

Profile.Design.Text.Font.fontFamily = "Miracode.ttf"

Profile:
  Design:
    Text:
      Font:
        fontFamily: "Miracode.ttf"

or

Whisper.GlobalConfig.profile.design.text.font.fontFamily = "Miracode.ttf"

Profile.Design.Background

Profile.Design.Background.type = SOLID

If background is a solid color or a type of gradient. If SOLID, Background.colors will only use the first color in the list to fill the background. All gradient specific configuration fields in Background will also be ignored if SOLID.
Options: SOLID, GRADIENT_LINEAR, GRADIENT_RADIAL, GRADIENT_SWEEP | Default: SOLID

Profile.Design.Background.colors = ["99545454"]

If Background type is SOLID, only first color is used as the background color. Otherwise multiple colors can be used for gradient background types.
Options: Values must be a 6 or 8 character color hex code as "RRGGBB" or "AARRGGBB" | Default: "BB66C2A5"

Profile.Design.Background.gradientOrientation

Sets the angle of the gradient. Only used if Background.type is not SOLID.
Options: TOP_BOTTOM, RIGHT_LEFT, BOTTOM_TOP, LEFT_RIGHT, TOPRIGHT_BOTTOMLEFT, BOTTOMRIGHT_TOPLEFT, BOTTOMLEFT_TOPRIGHT, TOPLEFT_BOTTOMRIGHT

Profile.Design.Background.gradientCenterX

The X position of the center of the gradient. Only used if Background.type is GRADIENT_RADIAL or GRADIENT_SWEEP.
Data Type: Float | Default: 0.5

Profile.Design.Background.gradientCenterY

The Y position of the center of the gradient. Only used if Background.type is GRADIENT_RADIAL or GRADIENT_SWEEP.
Data Type: Float | Default: 0.5

Profile.Design.Background.gradientRadius

Sets the radius of the gradient. Only used if Background.type is GRADIENT_RADIAL.
Data Type: Float | Default: 120

Profile:
  Design:
    Background:
      type: SOLID
      colors:
        - "99545454"

or

Whisper.GlobalConfig.profile.design.background.type = Whisper.Enums.BackgroundType.SOLID
Whisper.GlobalConfig.profile.design.background.colors = listOf("99545454")

Profile.Design.Background.type = GRADIENT_LINEAR

Profile:
  Design:
    Background:
      type: GRADIENT_LINEAR
      colors:
        - "99545454"
        - "FFFF3333"
      gradientOrientation: LEFT_RIGHT

or

Whisper.GlobalConfig.profile.design.background.type = Whisper.Enums.BackgroundType.GRADIENT_LINEAR
Whisper.GlobalConfig.profile.design.background.colors = listOf("99545454", "FFFF3333")
Whisper.GlobalConfig.profile.design.background.gradientOrientation = Whisper.Enums.GradientOrientation.LEFT_RIGHT

Profile.Design.Background.type = GRADIENT_RADIAL

Profile:
  Design:
    Background:
      type: GRADIENT_RADIAL
      colors:
        - "FF00FF44"
        - "FFFF3333"
      gradientOrientation: TOPRIGHT_BOTTOMLEFT
      gradientCenterX: 0.7
      gradientCenterY: 0.7

or

Whisper.GlobalConfig.profile.design.background.type = Whisper.Enums.BackgroundType.GRADIENT_RADIAL
Whisper.GlobalConfig.profile.design.background.colors = listOf("FF00FF44", "FFFF3333")
Whisper.GlobalConfig.profile.design.background.gradientOrientation = Whisper.Enums.GradientOrientation.TOPRIGHT_BOTTOMLEFT
Whisper.GlobalConfig.profile.design.background.gradientCenterX = 0.70f
Whisper.GlobalConfig.profile.design.background.gradientCenterY = 0.70f

Profile.Design.Background.type = GRADIENT_SWEEP

Profile:
  Design:
    Background:
      type: GRADIENT_SWEEP
      colors:
        - "FF00FF44"
        - "FFFF3333"
      gradientOrientation: TOP_BOTTOM
      gradientCenterX: 0.7
      gradientCenterY: 0.7
      gradientRadius: 90

or

Whisper.GlobalConfig.profile.design.background.type = Whisper.Enums.BackgroundType.GRADIENT_RADIAL
Whisper.GlobalConfig.profile.design.background.colors = listOf("FF00FF44", "FFFF3333")
Whisper.GlobalConfig.profile.design.background.gradientOrientation = Whisper.Enums.GradientOrientation.TOPRIGHT_BOTTOMLEFT
Whisper.GlobalConfig.profile.design.background.gradientCenterX = 0.70f
Whisper.GlobalConfig.profile.design.background.gradientCenterY = 0.70f

Profile.Design.Border.CornerRadius

Whisper corner radius (corner roundness for topLeft, topRight, bottomRight, bottomLeft).
Data Type: Integer | Default for each corner: 8, 8, 8, 8

topLeft, topRight, bottomRight, bottomLeft = 0

Profile:
  Design:
    Border:
      CornerRadius:
        topLeft: 0
        topRight: 0
        bottomRight: 0
        bottomLeft: 0

or

Whisper.GlobalConfig.profile.design.border.cornerRadius.topLeft = 0f
Whisper.GlobalConfig.profile.design.border.cornerRadius.topRight = 0f
Whisper.GlobalConfig.profile.design.border.cornerRadius.bottomRight = 0f
Whisper.GlobalConfig.profile.design.border.cornerRadius.bottomLeft = 0f

Whisper corner radius (corner roundness for topLeft, topRight, bottomRight, bottomLeft).
Data Type: Integer | Default for each corner: 8, 8, 8, 8

topLeft, topRight, bottomRight, bottomLeft = 30

Profile:
  Design:
    Border:
      CornerRadius:
        topLeft: 30
        topRight: 30
        bottomRight: 30
        bottomLeft: 30

or

Whisper.GlobalConfig.profile.design.border.cornerRadius.topLeft = 30f
Whisper.GlobalConfig.profile.design.border.cornerRadius.topRight = 30f
Whisper.GlobalConfig.profile.design.border.cornerRadius.bottomRight = 30f
Whisper.GlobalConfig.profile.design.border.cornerRadius.bottomLeft = 30f

Profile.Design.Border.size

Border width (size).
Data Type: Integer. 0 for no border. | Default: 4

Profile.Design.Border.size = 0

Profile:
  Design:
    Border:
      size: 0

or

Whisper.GlobalConfig.profile.design.border.size.topLeft = 0

Profile.Design.Border.size = 12

Profile:
  Design:
    Border:
      size: 12

or

Whisper.GlobalConfig.profile.design.border.size = 12

Profile.Design.Border.color

Border color.
Options: Value must be a 6 or 8 character color hex code as "RRGGBB" or "AARRGGBB". | Default: "CAF2E5"

Profile.Design.Border.color = "0000FF"

Profile:
  Design:
    Border:
      color: "0000FF"

or

Whisper.GlobalConfig.profile.design.border.color = "0000FF"

Profile.Design.Shadow.castShadow

Display a shadow for each Whisper. If true, enables all fields in Shadow (otherwise they are all ignored).
Options: true, false | Default: true

Profile.Design.Shadow.castShadow = true

Profile:
  Design:
    Shadow:
      castShadow: true

or

Whisper.GlobalConfig.profile.design.shadow.castShadow = true

Profile.Design.Shadow.castShadow = false

Profile:
  Design:
    Shadow:
      castShadow: false

or

Whisper.GlobalConfig.profile.design.shadow.castShadow = false

Profile.Design.Shadow.color

Shadow color. castShadow must be true for this field to apply.
Options: Value must be a 6 or 8 character color hex code as "RRGGBB" or "AARRGGBB". | Default: "88676767"

Profile.Design.Shadow.color = "88FF0000"

Profile:
  Design:
    Shadow:
      color: "88FF0000"

or

Whisper.GlobalConfig.profile.design.shadow.color = "88FF0000"

Profile.Design.Shadow.CornerRadius

Shadow corner radius (corner roundness for topLeft, topRight, bottomRight, bottomLeft). castShadow must be true for this field to apply.
Data Type: Integer | Default for each corner: 8, 8, 8, 8

topLeft, topRight, bottomRight, bottomLeft = 0

Profile:
  Design:
    Shadow:
      CornerRadius: 
        topLeft: 0
        topRight: 0
        bottomRight: 0
        bottomLeft: 0

or

Whisper.GlobalConfig.profile.design.shadow.CornerRadius.topLeft = 0f
Whisper.GlobalConfig.profile.design.shadow.CornerRadius.topRight = 0f
Whisper.GlobalConfig.profile.design.shadow.CornerRadius.bottomRight = 0f
Whisper.GlobalConfig.profile.design.shadow.CornerRadius.bottomLeft = 0f

Shadow corner radius (corner roundness for topLeft, topRight, bottomRight, bottomLeft). castShadow must be true for this field to apply.
Data Type: Integer | Default for each corner: 8, 8, 8, 8

topLeft, topRight, bottomRight, bottomLeft = 30

Profile:
  Design:
    Shadow:
      CornerRadius: 
        topLeft: 30
        topRight: 30
        bottomRight: 30
        bottomLeft: 30

or

Whisper.GlobalConfig.profile.design.shadow.CornerRadius.topLeft = 30f
Whisper.GlobalConfig.profile.design.shadow.CornerRadius.topRight = 30f
Whisper.GlobalConfig.profile.design.shadow.CornerRadius.bottomRight = 30f
Whisper.GlobalConfig.profile.design.shadow.CornerRadius.bottomLeft = 30f

Profile.Design.Shadow.Inset

Shadow insets (left, top, right, bottom). Shadow effect is achieved when Inset is used in combination with Shadow.padding. castShadow must be true for this field to apply.
Data Type: Integer | Default for each side: 8, 8, 0, 0

Inset left, top, right, bottom = 0

Padding left, top, right, bottom = 0, 0, 8, 8

Profile:
  Design:
    Shadow:
      Inset: 
        left: 0
        top: 0
        right: 0
        bottom: 0
      Padding:
        left: 0
        top: 0
        right: 8
        bottom: 8

or

Whisper.GlobalConfig.profile.design.shadow.Inset.left = 30f
Whisper.GlobalConfig.profile.design.shadow.Inset.top = 30f
Whisper.GlobalConfig.profile.design.shadow.Inset.right = 30f
Whisper.GlobalConfig.profile.design.shadow.Inset.bottom = 30f

Profile.Design.Shadow.Padding

Shadow padding (left, top, right, bottom). Shadow effect is achieved when inset is used in combination with Shadow.padding. castShadow must be true for this field to apply.
Data Type: Integer | Default for each side: 0, 0, 8, 8

left, top, right, bottom = 30

Profile:
  Design:
    Shadow:
      Inset:
        left: 0
        top: 0
        right: 24
        bottom: 24
      Padding: 
        left: 30
        top: 30
        right: 30
        bottom: 30

or

Whisper.GlobalConfig.profile.design.shadow.Padding.left = 30f
Whisper.GlobalConfig.profile.design.shadow.Padding.top = 30f
Whisper.GlobalConfig.profile.design.shadow.Padding.right = 30f
Whisper.GlobalConfig.profile.design.shadow.Padding.bottom = 30f