Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change timetable calendar icon #475

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Bookmark
import androidx.compose.material.icons.filled.BookmarkBorder
import androidx.compose.material.icons.filled.Share
import androidx.compose.material.icons.outlined.CalendarToday
import androidx.compose.material3.BottomAppBar
import androidx.compose.material3.BottomAppBarDefaults
import androidx.compose.material3.FloatingActionButton
Expand All @@ -14,6 +13,8 @@ import androidx.compose.material3.IconButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.res.painterResource
import io.github.droidkaigi.confsched2023.feature.sessions.R
import io.github.droidkaigi.confsched2023.model.TimetableItem
import io.github.droidkaigi.confsched2023.sessions.SessionsStrings

Expand All @@ -37,7 +38,7 @@ fun TimetableItemDetailFooter(
}
IconButton(onClick = { /*TODO*/ }) {
Icon(
imageVector = Icons.Outlined.CalendarToday,
painter = painterResource(id = R.drawable.calendar_add_on),
contentDescription = SessionsStrings.AddToCalendar.toString(),
)
}
Expand Down
13 changes: 13 additions & 0 deletions feature/sessions/src/main/res/drawable/calendar_add_on.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path
android:pathData="M0,0h24v24h-24z"/>
<path
android:pathData="M18,22C17.448,22 17,21.552 17,21V19H15C14.448,19 14,18.552 14,18C14,17.448 14.448,17 15,17H17V15C17,14.448 17.448,14 18,14C18.552,14 19,14.448 19,15V17H21C21.552,17 22,17.448 22,18C22,18.552 21.552,19 21,19H19V21C19,21.552 18.552,22 18,22ZM5,20C4.45,20 3.979,19.804 3.588,19.413C3.196,19.021 3,18.55 3,18V6C3,5.45 3.196,4.979 3.588,4.588C3.979,4.196 4.45,4 5,4H6V3C6,2.448 6.448,2 7,2C7.552,2 8,2.448 8,3V4H14V3C14,2.448 14.448,2 15,2C15.552,2 16,2.448 16,3V4H17C17.55,4 18.021,4.196 18.413,4.588C18.804,4.979 19,5.45 19,6V12.1C18.667,12.05 18.333,12.025 18,12.025C17.667,12.025 17.333,12.05 17,12.1V10H5V18H12C12,18.333 12.025,18.667 12.075,19C12.125,19.333 12.217,19.667 12.35,20H5ZM5,8H17V6H5V8Z"
android:fillColor="#404944"/>
</group>
</vector>