Skip to content

Commit a1f2e3d

Browse files
author
Julian Raphael Jautz
committed
PAINTROID_684_apply_outline_to_text
TextTool feature: text with outline -added new button for outline -outline created by painting twice (second time in stroke mode)
1 parent 6b4200c commit a1f2e3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Paintroid/src/main/java/org/catrobat/paintroid/tools/implementation/TextTool.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class TextTool(
405405
underlined = getBoolean(BUNDLE_TOOL_UNDERLINED, underlined)
406406
italic = getBoolean(BUNDLE_TOOL_ITALIC, italic)
407407
bold = getBoolean(BUNDLE_TOOL_BOLD, bold)
408-
outlined = getBoolean(BUNDLE_TOOL_UNDERLINED, outlined)
408+
outlined = getBoolean(BUNDLE_TOOL_OUTLINED, outlined)
409409
text = getString(BUNDLE_TOOL_TEXT, text)
410410
textSize = getInt(BUNDLE_TOOL_TEXT_SIZE, textSize)
411411
font = FontType.valueOf(getString(BUNDLE_TOOL_FONT, font.name))

Paintroid/src/main/java/org/catrobat/paintroid/ui/tools/DefaultTextToolOptionsView.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ class DefaultTextToolOptionsView(rootView: ViewGroup) : TextToolOptionsView {
231231
italicToggleButton.isChecked = italic
232232
underlinedToggleButton.isChecked = underlined
233233
outlineToggleButton.isChecked = outlined
234+
notifyOutlineChanged(outlined)
234235
textEditText.setText(text)
235236
(fontList.adapter as FontListAdapter).setSelectedIndex(fontTypes.indexOf(fontType))
236237
fontSizeText.setText(DEFAULT_TEXTSIZE)
237-
outlineWidthText.setText(outlineWidth)
238+
outlineWidthText.setText(outlineWidth.toString())
238239
}
239240

240241
override fun setCallback(listener: TextToolOptionsView.Callback) {

0 commit comments

Comments
 (0)