Procházet zdrojové kódy

disable useless button

faterhenry před 6 roky
rodič
revize
3639cd42a2

+ 0 - 6
src/main/java/com/bomostory/sceneeditmodule/navigationbar/NavigationBarView.kt

@@ -34,12 +34,6 @@ class NavigationBarView : RelativeLayout{
         actor = rootView.findViewById(R.id.actor)
         brush = rootView.findViewById(R.id.brush)
         dialogue = rootView.findViewById(R.id.dialogue)
-//        scene = rootView.scene_btn
-//        actor = rootView.actor_btn
-//        brush = rootView.brush_btn
-//        dialogue = rootView.dialogue_btn
-//        image = rootView.image_btn
-//        settings = rootView.settings
     }
 
     fun setonClickSceneBtn(onClickListener: OnClickListener) {

+ 4 - 2
src/main/res/drawable/ic_layer_b.xml

@@ -12,9 +12,11 @@
   <path
       android:pathData="M19.37,12.8l-7.38,5.74 -7.37,-5.73L3,14.07l9,7 9,-7z"
       android:fillColor="#000"
-      android:fillType="nonZero"/>
+      android:fillType="nonZero"
+      android:fillAlpha="0.6"/>
   <path
       android:pathData="M12,2L3,9l1.63,1.27L12,16l7.36,-5.73L21,9l-9,-7zM12,13.47L6.26,9 12,4.53 17.74,9 12,13.47z"
       android:fillColor="#000"
-      android:fillType="nonZero"/>
+      android:fillType="nonZero"
+      android:fillAlpha="0.6"/>
 </vector>

+ 8 - 4
src/main/res/layout/control_actor_dialog.xml

@@ -37,14 +37,16 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:src="@drawable/ic_opacity_b"/>
+            android:src="@drawable/ic_opacity_b"
+            android:tint="@android:color/darker_gray"/>
         <TextView
             android:layout_width="wrap_content"
             android:layout_height="24dp"
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Opacity"/>
+            android:text="Opacity"
+            android:textColor="@android:color/darker_gray"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/Mirror"
@@ -58,14 +60,16 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:src="@drawable/ic_flip_b"/>
+            android:src="@drawable/ic_flip_b"
+            android:tint="@android:color/darker_gray"/>
         <TextView
             android:layout_width="wrap_content"
             android:layout_height="24dp"
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Mirror"/>
+            android:text="Mirror"
+            android:textColor="@android:color/darker_gray"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/bring_to_front"

+ 5 - 3
src/main/res/layout/navigation_bar_view.xml

@@ -67,6 +67,7 @@
                 android:scaleType="center"
                 android:background="#212121"
                 android:layout_centerHorizontal="true"
+                android:tint="@android:color/darker_gray"
                 android:src="@drawable/ic_brush"/>
             <TextView
                 android:layout_width="wrap_content"
@@ -74,7 +75,7 @@
                 android:layout_below="@+id/brush_btn"
                 android:layout_centerInParent="true"
                 android:text="Brush"
-                android:textColor="#ffecb3"/>
+                android:textColor="@android:color/darker_gray"/>
         </RelativeLayout>
         <RelativeLayout
             android:id="@+id/dialogue"
@@ -133,14 +134,15 @@
                 android:scaleType="center"
                 android:background="#212121"
                 android:layout_centerHorizontal="true"
-                android:drawableTop="@drawable/ic_settings"/>
+                android:drawableTint="@android:color/darker_gray"
+                android:drawableTop="@drawable/ic_settings" />
             <TextView
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_below="@+id/settings_btn"
                 android:layout_centerInParent="true"
                 android:text="Settings"
-                android:textColor="#ffecb3"/>
+                android:textColor="@android:color/darker_gray"/>
         </RelativeLayout>
     </RelativeLayout>
 </RelativeLayout>