Skip to content

Commit

Permalink
design(#7): 노드 깊이 색상값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1318 committed Nov 16, 2023
1 parent cd667fe commit bde30d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ import boostcamp.and07.mindsync.ui.util.toPx
class NodeView constructor(context: Context, attrs: AttributeSet?) : View(context, attrs) {
private val head = SampleNode.head
private val circlePaint = Paint().apply {
color = context.getColor(R.color.sub1)
color = context.getColor(R.color.mindmap1)
}
private val rectanglePaint = Paint()
private val nodeColors = listOf(
context.getColor(R.color.main2),
context.getColor(R.color.main4),
context.getColor(R.color.main1),
context.getColor(R.color.main3),
context.getColor(R.color.sub2),
context.getColor(R.color.sub1),
context.getColor(R.color.mindmap2),
context.getColor(R.color.mindmap3),
context.getColor(R.color.mindmap4),
context.getColor(R.color.mindmap5),
)

override fun onDraw(canvas: Canvas) {
Expand Down
7 changes: 7 additions & 0 deletions AOS/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@

<color name="sub2">#49AA95</color>
<color name="sub1">#FB5D67</color>


<color name="mindmap1">#D7558A</color>
<color name="mindmap2">#B9BC81</color>
<color name="mindmap3">#7AA37D</color>
<color name="mindmap4">#4B877B</color>
<color name="mindmap5">#336770</color>
</resources>

0 comments on commit bde30d1

Please sign in to comment.