Search in sources :

Example 1 with WorkspaceAndHotseatScrim

use of com.android.launcher3.graphics.WorkspaceAndHotseatScrim in project android_packages_apps_Trebuchet by LineageOS.

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.hasFlag(FLAG_HAS_SYS_UI_SCRIM) ? 1 : 0, LINEAR);
}
Also used : WorkspaceAndHotseatScrim(com.android.launcher3.graphics.WorkspaceAndHotseatScrim)

Example 2 with WorkspaceAndHotseatScrim

use of com.android.launcher3.graphics.WorkspaceAndHotseatScrim 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)2 OmegaBackgroundView (com.saggitt.omega.views.OmegaBackgroundView)1