New dark style for Astrid task list UI designed by Scott Rim & Astrid team
- new header and footer styling - abbreviated date format, moved date and details to same line - new icons and reduced padding for quick action bar - notched task indicators - smaller details font - new icons for details row - new check box icons - added header to filter activity - removed unused resourcespull/14/head
@ -0,0 +1,45 @@
|
||||
/**
|
||||
* See the file "LICENSE" for the full license governing this code.
|
||||
*/
|
||||
package com.todoroo.astrid.notes;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.widget.RemoteViews;
|
||||
|
||||
import com.timsu.astrid.R;
|
||||
import com.todoroo.andlib.service.ContextManager;
|
||||
import com.todoroo.andlib.utility.Preferences;
|
||||
import com.todoroo.astrid.api.TaskDecoration;
|
||||
import com.todoroo.astrid.api.TaskDecorationExposer;
|
||||
import com.todoroo.astrid.data.Task;
|
||||
|
||||
/**
|
||||
* Exposes {@link TaskDecoration} for timers
|
||||
*
|
||||
* @author Tim Su <tim@todoroo.com>
|
||||
*
|
||||
*/
|
||||
public class NotesDecorationExposer implements TaskDecorationExposer {
|
||||
|
||||
@Override
|
||||
public TaskDecoration expose(Task task) {
|
||||
if(Preferences.getBoolean(R.string.p_showNotes, false))
|
||||
return null;
|
||||
if(task == null || TextUtils.isEmpty(task.getValue(Task.NOTES)))
|
||||
return null;
|
||||
|
||||
|
||||
TaskDecoration decoration;
|
||||
RemoteViews remoteViews = new RemoteViews(ContextManager.getContext().getPackageName(),
|
||||
R.layout.note_decoration);
|
||||
decoration = new TaskDecoration(remoteViews, TaskDecoration.POSITION_RIGHT, 0);
|
||||
|
||||
return decoration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAddon() {
|
||||
return NotesPlugin.IDENTIFIER;
|
||||
}
|
||||
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/accelerate_interpolator"
|
||||
android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="100" />
|
||||
</set>
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/accelerate_interpolator"
|
||||
android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="50" />
|
||||
</set>
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 431 B |
After Width: | Height: | Size: 494 B |
After Width: | Height: | Size: 445 B |
After Width: | Height: | Size: 282 B |
After Width: | Height: | Size: 454 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 956 B |
After Width: | Height: | Size: 817 B |
After Width: | Height: | Size: 440 B |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 505 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 237 B |
After Width: | Height: | Size: 214 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 320 B |
After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 721 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 316 B |
After Width: | Height: | Size: 383 B |
After Width: | Height: | Size: 439 B |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 372 B |
After Width: | Height: | Size: 917 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/assets/res/any/drawable/editbox_background.xml
|
||||
**
|
||||
** Copyright 2006, 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.
|
||||
*/
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true" android:drawable="@drawable/footer_edittext_focus" />
|
||||
<item android:drawable="@drawable/footer_edittext_normal" />
|
||||
</selector>
|
||||
|
After Width: | Height: | Size: 795 B |
After Width: | Height: | Size: 1016 B |
After Width: | Height: | Size: 338 B |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 828 B |
After Width: | Height: | Size: 617 B |
After Width: | Height: | Size: 772 B |
After Width: | Height: | Size: 961 B |
After Width: | Height: | Size: 882 B |
After Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 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.
|
||||
-->
|
||||
|
||||
<transition xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/list_selector_background_pressed" />
|
||||
<item android:drawable="@drawable/list_selector_background_longpress" />
|
||||
</transition>
|
Before Width: | Height: | Size: 882 B |
Before Width: | Height: | Size: 626 B |
Before Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 778 B |
Before Width: | Height: | Size: 715 B |
Before Width: | Height: | Size: 923 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 995 B |
Before Width: | Height: | Size: 482 B |
Before Width: | Height: | Size: 509 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 237 B |
After Width: | Height: | Size: 214 B |