diff options
author | Chris Wren <cwren@android.com> | 2012-09-13 14:48:22 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2012-09-13 15:01:12 -0400 |
commit | 651ee92128e1899957758abeeb1c2c669f240093 (patch) | |
tree | 1b881567e004ed733e9e6154c469ffc47b0c17bc /res | |
parent | f98687b22f4091083287ab7de7a0f3102bd9c1ba (diff) | |
download | android_packages_screensavers_PhotoTable-651ee92128e1899957758abeeb1c2c669f240093.tar.gz android_packages_screensavers_PhotoTable-651ee92128e1899957758abeeb1c2c669f240093.tar.bz2 android_packages_screensavers_PhotoTable-651ee92128e1899957758abeeb1c2c669f240093.zip |
add vignetting to the photo table
Change-Id: I329b14ffdc70cc21e16f917fd06a4c2b1f1e27b6
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/vignette_br.xml | 26 | ||||
-rw-r--r-- | res/drawable/vignette_tl.xml | 26 | ||||
-rw-r--r-- | res/layout-sw800dp/table.xml | 25 | ||||
-rw-r--r-- | res/layout/table.xml | 33 | ||||
-rw-r--r-- | res/values/colors.xml | 4 |
5 files changed, 113 insertions, 1 deletions
diff --git a/res/drawable/vignette_br.xml b/res/drawable/vignette_br.xml new file mode 100644 index 0000000..517fa5b --- /dev/null +++ b/res/drawable/vignette_br.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <gradient + android:startColor="@color/vignette_light" + android:centerColor="@color/vignette_light" + android:endColor="@color/vignette_dark" + android:type="linear" + android:angle="315" + /> +</shape> diff --git a/res/drawable/vignette_tl.xml b/res/drawable/vignette_tl.xml new file mode 100644 index 0000000..d6a0646 --- /dev/null +++ b/res/drawable/vignette_tl.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <gradient + android:startColor="@color/vignette_light" + android:centerColor="@color/vignette_light" + android:endColor="@color/vignette_dark" + android:type="linear" + android:angle="135" + /> +</shape> diff --git a/res/layout-sw800dp/table.xml b/res/layout-sw800dp/table.xml new file mode 100644 index 0000000..64fe969 --- /dev/null +++ b/res/layout-sw800dp/table.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + <com.android.dreams.phototable.PhotoTable + android:background="@+drawable/table" + android:id="@+id/table" + android:layout_width="match_parent" + android:layout_height="match_parent" /> +</FrameLayout> diff --git a/res/layout/table.xml b/res/layout/table.xml new file mode 100644 index 0000000..bbff2fb --- /dev/null +++ b/res/layout/table.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + <com.android.dreams.phototable.PhotoTable + android:background="@+drawable/table" + android:id="@+id/table" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + <View + android:background="@+drawable/vignette_br" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + <View + android:background="@+drawable/vignette_tl" + android:layout_width="match_parent" + android:layout_height="match_parent" /> +</FrameLayout> diff --git a/res/values/colors.xml b/res/values/colors.xml index 279c0c9..a6c7746 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -14,6 +14,8 @@ limitations under the License. --> <resources> - <color name="tabletop_dark">#ff222222</color> <color name="tabletop_light">#ff111111</color> + <color name="tabletop_dark">#ff222222</color> + <color name="vignette_light">#00000000</color> + <color name="vignette_dark">#bf000000</color> </resources> |