Commit Graph

280 Commits

Author SHA1 Message Date
Aurélien Gâteau
fc0f700c9d Fix text colors on TabButton and ToolButton
When the widgets use the button background frame, use buttonTextColor.
When they do not use any background frame, use textColor.

Avoids unreadable text with Oxygen

REVIEW: 105163
2012-06-09 10:12:05 +02:00
Aurélien Gâteau
0aaf3f4760 Use the same text color as C++ Plasma::LineEdit
Plasma::LineEdit uses the button text color for its text. Do the same
in PlasmaComponents.TextField to avoid white text on white background with
Oxygen theme.

Also use button text color for PC.TextArea because it uses the same
background frame as PC.TextField (P.TextEdit, its C++ equivalent, does not
have any background frame)

REVIEW: 105159
2012-06-09 10:12:05 +02:00
Sebastian Kügler
e27c827fba Mention enabled property in ToolButton's APIDOC 2012-06-08 12:49:36 +02:00
Sebastian Kügler
ba689faf16 Fix warnings in color assignments 2012-06-05 03:31:04 +02:00
Marco Martin
c049c116cf integer number of rectangles for progressbar too 2012-05-28 14:49:36 +02:00
Marco Martin
d3d8107e88 reset position when not indeterminate anymore 2012-05-28 14:49:35 +02:00
Sebastian Kügler
bcd6a0cc55 Fix text field color 2012-05-21 19:40:23 +02:00
Sebastian Kügler
f3dff31f05 Fix password character 2012-05-21 19:40:23 +02:00
Sebastian Kügler
7024329085 Use black as text color in TextField and TextInput
It seems that there's not a single theme out there which properly sets
viewTextColor. The background of textedits is white, so the text has to
be black. On Air(-mobile) this is not a problem, since the text is black
anyway, on dark themes (which set the text color to white), text simply
isn't visible.

We'll have to look into how themes implement viewtextcolor, should
probably fix the themes instead of the components, but this makes it
work until we do.
2012-05-21 19:40:23 +02:00
Aurélien Gâteau
cdba0a2222 Fix keyboard navigation in TabBar 2012-05-15 17:24:30 +02:00
Dennis Nienhüser
17f5b499bb Width and height are implicitly set by the anchors. 2012-05-10 19:33:33 +02:00
Sebastian Gottfried
5b567230e6 buttons: first focus, than emit clicked() signal
Otherwise a client wanting to give another QML component the focus in
reaction to a clicked button has no chance doing so because the button
will steal the focus again right after the event handler has finished
executing.

REVIEW: 104893
2012-05-10 00:48:53 +02:00
Dennis Nienhüser
5453bbc801 Fix mistyped enum values.
Please test as code using it might behave differently now (menus
aligned left before while horizontally centered on the parent now)
2012-05-09 00:13:26 +02:00
Marco Martin
14122d0199 hide the tools that have long been dismissed 2012-05-03 14:27:18 +02:00
Marco Martin
b529412312 ensire the switch is rendered correctly 2012-04-27 15:47:58 +02:00
Marco Martin
856b001d73 respect svg size for handle size 2012-04-27 15:15:32 +02:00
Sebastian Kügler
8a90947a33 Fix reference error in slider 2012-04-27 00:36:26 +02:00
Aurélien Gâteau
2b8a7b32c5 Toolbutton: Fix layout issues
- Improve spacing between icon and text
- Do not enforce a minimum width

Having a minimum width does not make much sense for a ToolButton:
1. It should aim at using the minimum amount of horizontal space when
   used in a ToolBar.
2. It looks unbalanced when used with an icon because the content is
   flushed to the left, leaving a large amount of white-space on the right.

REVIEW: 104735
2012-04-26 15:12:03 +02:00
Aurélien Gâteau
90bddbf61e ToolButton: Improve keyboard navigation support
Use the hover frame to indicate focus, do not give focus if keyboard
navigation is not defined.

REVIEW: 104727
2012-04-26 09:21:02 +02:00
Aurélien Gâteau
47d42a6d36 TextField: support for passwordCharacter
Use a more modern password character, and expose it to the outside world

REVIEW: 104726
2012-04-26 09:21:02 +02:00
Aurélien Gâteau
9b04155a92 TextField: add keyboard navigation support
REVIEW: 104722
2012-04-25 17:45:54 +02:00
Marco Martin
263a184049 preselect the first item if not told otherwise 2012-04-17 14:56:54 +02:00
Marco Martin
021d196ab8 don't reset checked button 2012-04-17 11:21:01 +02:00
Marco Martin
a7effaa7c4 respect an hardcoded default checked button 2012-04-17 10:56:51 +02:00
Marco Martin
091bde342d remove all signs of updateValueWhileDragging 2012-04-05 21:07:42 +02:00
Viranch Mehta
11991bdd14 QML scrollbar: Timeout the scroll timer as soon as the arrow is pressed. This avoids getting no reaction when arrow is clicked very quickly. 2012-04-04 16:21:50 +05:30
Viranch Mehta
021ca8c08a Fix the SVGs in QML Scrollbar component:
* The hover and non-hover arrow images in vertical scrollbar are the same.
* The pressed/hover/normal states of down/right arrows are connected to mouse area of up/left arrows.
* The mouse areas of the arrows do not have hoverEnabled property set to true. This is required to use their containsMouse property.
REVIEW: 104402
2012-04-04 15:40:23 +05:30
Aaron Seigo
b098deb453 improve docu 2012-04-03 13:27:39 +02:00
Daker Fernandes Pinheiro
5b452bfb9a Change default value of enabled property in ListItem Plasma Component
Also adds documentation for the enabled property.

Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2012-03-27 11:17:36 -03:00
Sebastian Kügler
af7ec4df34 Fix reference error and hiding SIP from TextArea 2012-03-27 13:54:51 +02:00
David Edmundson
732c98110f Remove invalid documentation for property "animated" on Slider
See discussion at: https://git.reviewboard.kde.org/r/104318/
2012-03-22 20:20:16 +00:00
Daker Fernandes Pinheiro
eabd70b019 Fix coding style for TextField Plasma Component accepted signal
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2012-03-22 08:58:29 -03:00
Daker Fernandes Pinheiro
161b548803 Fixed coding style in doc example for TextField Plasma Component
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2012-03-22 08:57:56 -03:00
David Edmundson
cfc76b8144 Fix padding in toolbutton and tab buttons
REVIEW: 104319
2012-03-20 00:57:54 +00:00
Marco Martin
fda07f4473 documentation 2012-03-01 15:10:48 +01:00
Marco Martin
f30b2da11b fully working 2012-03-01 15:03:45 +01:00
Marco Martin
07b7041b92 common class for sheet and dialog 2012-02-28 14:49:20 +01:00
Marco Martin
dc791aad5b a fullscreen sheet derived from fullscreendialog 2012-02-28 12:11:22 +01:00
Marco Martin
2e79f694b7 skip non tabbuttons 2012-02-23 21:22:56 +01:00
Marco Martin
cc1c6c5b9e revert 7552f160ff1c01a338f9093eeb56a7db1396c5a2 2012-02-20 21:01:08 +01:00
Shaun Reich
d5bf439e5b be sure to H align the text if our icon is valid in a Button 2012-02-19 00:09:06 -05:00
Marco Martin
0bd0641e3e layout fixes
don't count things that aren't buttons in thewidth calculations
2012-02-17 12:28:57 +01:00
Marco Martin
dfb566034d unwind to itself means no pop 2012-02-14 20:37:03 +01:00
Marco Martin
0e9c604043 always permit to pop 2012-02-14 17:59:23 +01:00
Marco Martin
5e6fc957f2 documentation++ 2012-02-10 19:40:33 +01:00
Shaun Reich
9831905309 hack margins so listview doesn't suck 2012-02-09 13:22:13 -05:00
Shaun Reich
423698be18 imrpove doc for that last change 2012-02-09 13:10:23 -05:00
Shaun Reich
c9db516162 add opacity behavior change animationf or highlight component
shoudl work great for listviews purpioses now
2012-02-09 13:08:29 -05:00
Shaun Reich
087d053d02 GIT_SILENT: minor spelling doc change 2012-02-04 16:06:02 -05:00
Sebastian Kügler
cf9bae7950 Fix reference error 2012-01-28 14:00:58 +01:00