Commit f35f22f7 authored by Geoffrey Métais's avatar Geoffrey Métais

Transparent dialogs for advanced video options

parent 5bc5d0ab
......@@ -7,9 +7,6 @@
android:padding="20dp"
tools:context="org.videolan.vlc.gui.video.AdvOptionsDialog">
<!-- TODO: Update blank fragment layout -->
<!-- Playback speed -->
<LinearLayout
......@@ -175,7 +172,13 @@
android:focusable="true"
android:gravity="center_vertical"
android:text="@string/jump_to_time" />
</LinearLayout>
<!-- Tracks delay -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/audio_delay"
android:layout_width="wrap_content"
......
......@@ -191,6 +191,14 @@
<!-- Advanced options menu styles -->
<style name="Theme.VLC.TransparentDialog" parent="@style/Theme.AppCompat.Dialog">
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">true</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@drawable/rounded_corners</item>
</style>
<style name="Theme.VLC.AdvancedOptions" parent="@android:style/Theme.Dialog">
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>
......
......@@ -109,6 +109,7 @@ public class PickTimeFragment extends DialogFragment implements DialogInterface.
getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
getDialog().setOnKeyListener(this);
getDialog().getWindow().setLayout(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
getDialog().getWindow().setBackgroundDrawableResource(R.drawable.rounded_corners);
return view;
}
......
......@@ -83,7 +83,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
sInstance = this;
setStyle(STYLE_NO_FRAME, R.style.Base_Theme_AppCompat_Dialog);
setStyle(STYLE_NO_FRAME, R.style.Theme_VLC_TransparentDialog);
if (VLCApplication.sPlayerSleepTime != null && VLCApplication.sPlayerSleepTime.before(Calendar.getInstance()))
VLCApplication.sPlayerSleepTime = null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment