Search in sources :

Example 1 with OmegaBackgroundView

use of com.saggitt.omega.views.OmegaBackgroundView in project Neo-Launcher by NeoApplications.

the class WorkspaceStateTransitionAnimation method setScrim.

public void setScrim(PropertySetter propertySetter, LauncherState state) {
    WorkspaceAndHotseatScrim scrim = mLauncher.getDragLayer().getScrim();
    propertySetter.setFloat(scrim, SCRIM_PROGRESS, state.getWorkspaceScrimAlpha(mLauncher), LINEAR);
    propertySetter.setFloat(scrim, SYSUI_PROGRESS, state.hasSysUiScrim ? 1 : 0, LINEAR);
    OmegaBackgroundView background = OmegaLauncher.getLauncher(mLauncher).getBackground();
    propertySetter.setFloat(background.getBlurAlphas().getProperty(ALPHA_INDEX_STATE), InvertedMultiValueAlpha.VALUE, state.getWorkspaceBlurAlpha(mLauncher), LINEAR);
}
Also used : OmegaBackgroundView(com.saggitt.omega.views.OmegaBackgroundView) WorkspaceAndHotseatScrim(com.android.launcher3.graphics.WorkspaceAndHotseatScrim)

Aggregations

WorkspaceAndHotseatScrim (com.android.launcher3.graphics.WorkspaceAndHotseatScrim)1 OmegaBackgroundView (com.saggitt.omega.views.OmegaBackgroundView)1